diff options
author | 2018-02-20 20:49:36 -0800 | |
---|---|---|
committer | 2018-02-20 20:49:36 -0800 | |
commit | 03e2e1328362ea606f07e45cfebcdea7109380fb (patch) | |
tree | 199047cdf145faf1e94f72af0da169d14b33a223 /src/core | |
parent | c02d997607f155d39382cce26d10583f2b0fefba (diff) |
Minor fixes
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/lib/gprpp/thd_posix.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lib/gprpp/thd_posix.cc b/src/core/lib/gprpp/thd_posix.cc index 9ed6758b31..4cc3d2be4d 100644 --- a/src/core/lib/gprpp/thd_posix.cc +++ b/src/core/lib/gprpp/thd_posix.cc @@ -131,7 +131,7 @@ Thread::Thread(const char* thd_name, void (*thd_body)(void* arg), void* arg, *success = alive_; } - id_ = reinterpret_cast<gpr_thd_id>(p); + id_ = gpr_thd_id(p); GPR_ASSERT(pthread_attr_destroy(&attr) == 0); if (!alive_) { @@ -143,7 +143,7 @@ Thread::Thread(const char* thd_name, void (*thd_body)(void* arg), void* arg, void Thread::Join() { if (alive_) { - pthread_join(reinterpret_cast<pthread_t>(id_), nullptr); + pthread_join(pthread_t(id_), nullptr); } joined_ = true; } |