diff options
author | Mark D. Roth <roth@google.com> | 2017-11-15 12:54:28 -0800 |
---|---|---|
committer | Mark D. Roth <roth@google.com> | 2017-11-15 12:54:28 -0800 |
commit | 03610f672e725a050224bf40540fc085bead1656 (patch) | |
tree | 360dc9d878d00458f8c65bc36197fb2719ba59d5 /src/core/lib/support/sync_posix.cc | |
parent | faeabfff5130a75f6f457384fcf6f6f1e092a611 (diff) | |
parent | 366e23b604d6458787ef8df77a2fed9c6d861f45 (diff) |
Merge remote-tracking branch 'upstream/master' into server_connection_timeout
Diffstat (limited to 'src/core/lib/support/sync_posix.cc')
-rw-r--r-- | src/core/lib/support/sync_posix.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/lib/support/sync_posix.cc b/src/core/lib/support/sync_posix.cc index 62d800b18c..dfdd233bf4 100644 --- a/src/core/lib/support/sync_posix.cc +++ b/src/core/lib/support/sync_posix.cc @@ -33,7 +33,9 @@ gpr_atm gpr_counter_atm_cas = 0; gpr_atm gpr_counter_atm_add = 0; #endif -void gpr_mu_init(gpr_mu* mu) { GPR_ASSERT(pthread_mutex_init(mu, NULL) == 0); } +void gpr_mu_init(gpr_mu* mu) { + GPR_ASSERT(pthread_mutex_init(mu, nullptr) == 0); +} void gpr_mu_destroy(gpr_mu* mu) { GPR_ASSERT(pthread_mutex_destroy(mu) == 0); } @@ -63,7 +65,9 @@ int gpr_mu_trylock(gpr_mu* mu) { /*----------------------------------------*/ -void gpr_cv_init(gpr_cv* cv) { GPR_ASSERT(pthread_cond_init(cv, NULL) == 0); } +void gpr_cv_init(gpr_cv* cv) { + GPR_ASSERT(pthread_cond_init(cv, nullptr) == 0); +} void gpr_cv_destroy(gpr_cv* cv) { GPR_ASSERT(pthread_cond_destroy(cv) == 0); } |