From 4013f0ccdac95064f74a4c96cbe43c6a98c6c0ba Mon Sep 17 00:00:00 2001 From: Vijay Pai Date: Fri, 2 Mar 2018 19:19:48 -0800 Subject: Address reviewer comments --- src/core/lib/gprpp/thd.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core/lib/gprpp') diff --git a/src/core/lib/gprpp/thd.h b/src/core/lib/gprpp/thd.h index 2f86893519..05c7ded45f 100644 --- a/src/core/lib/gprpp/thd.h +++ b/src/core/lib/gprpp/thd.h @@ -42,6 +42,7 @@ class ThreadInternalsInterface { virtual void Join() GRPC_ABSTRACT; GRPC_ABSTRACT_BASE_CLASS }; + } // namespace internal class Thread { @@ -98,9 +99,9 @@ class Thread { GPR_ASSERT(state_ == FAILED); } }; + void Join() { if (impl_ != nullptr) { - GPR_ASSERT(state_ == STARTED); impl_->Join(); grpc_core::Delete(impl_); state_ = DONE; -- cgit v1.2.3