diff options
Diffstat (limited to 'src/core/lib/gpr/thd_posix.cc')
-rw-r--r-- | src/core/lib/gpr/thd_posix.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/lib/gpr/thd_posix.cc b/src/core/lib/gpr/thd_posix.cc index e8e61ca396..ce268e1fbc 100644 --- a/src/core/lib/gpr/thd_posix.cc +++ b/src/core/lib/gpr/thd_posix.cc @@ -103,9 +103,13 @@ int gpr_thd_new(gpr_thd_id* t, const char* thd_name, return thread_started; } -gpr_thd_id gpr_thd_currentid(void) { return static_cast<gpr_thd_id>(pthread_self()); } +gpr_thd_id gpr_thd_currentid(void) { + return static_cast<gpr_thd_id>(pthread_self()); +} -void gpr_thd_join(gpr_thd_id t) { pthread_join(static_cast<pthread_t>(t), nullptr); } +void gpr_thd_join(gpr_thd_id t) { + pthread_join(static_cast<pthread_t>(t), nullptr); +} /***************************************** * Only used when fork support is enabled |