diff options
author | Craig Tiller <ctiller@google.com> | 2017-10-12 15:50:13 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-10-12 15:50:13 -0700 |
commit | 1e8c2ab769129b1d4e43cdbc1af89eb0082741fd (patch) | |
tree | 8fca142e3e116b7c40c818a019172975a90538f1 /include/grpc/support | |
parent | ad059f70f8bccee3ae1a0ef1568c8d89c0c1004d (diff) |
clang-format
Diffstat (limited to 'include/grpc/support')
-rw-r--r-- | include/grpc/support/sync.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/grpc/support/sync.h b/include/grpc/support/sync.h index 3e3f1925ce..ddb85808c7 100644 --- a/include/grpc/support/sync.h +++ b/include/grpc/support/sync.h @@ -274,23 +274,23 @@ GPRAPI intptr_t gpr_stats_read(const gpr_stats_counter *c); #endif /* 0 */ #ifdef __cplusplus -} // extern "C" +} // extern "C" namespace grpc_core { class mu_guard { -public: + public: mu_guard(gpr_mu *mu) : mu_(mu) { gpr_mu_lock(mu); } ~mu_guard() { gpr_mu_unlock(mu_); } - mu_guard(const mu_guard&) = delete; - mu_guard& operator=(const mu_guard&) = delete; + mu_guard(const mu_guard &) = delete; + mu_guard &operator=(const mu_guard &) = delete; -private: - gpr_mu* const mu_; + private: + gpr_mu *const mu_; }; -} // namespace grpc_core +} // namespace grpc_core #endif #endif /* GRPC_SUPPORT_SYNC_H */ |