diff options
author | Vijay Pai <vpai@google.com> | 2018-03-02 19:19:48 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-02 19:19:48 -0800 |
commit | 4013f0ccdac95064f74a4c96cbe43c6a98c6c0ba (patch) | |
tree | 09e348917cd40440cb5feaaf49853a17f109984e /src/core/lib/gprpp | |
parent | 162ae4f50c53cc6f1f3972c8fb63a5a5e78a1cb7 (diff) |
Address reviewer comments
Diffstat (limited to 'src/core/lib/gprpp')
-rw-r--r-- | src/core/lib/gprpp/thd.h | 3 |
1 files changed, 2 insertions, 1 deletions
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; |