diff options
author | Mark D. Roth <roth@google.com> | 2018-08-16 12:04:24 -0700 |
---|---|---|
committer | Mark D. Roth <roth@google.com> | 2018-08-16 13:19:01 -0700 |
commit | 7a7e4f56529c4da16ec6a3035e7b3bdf9dfb6f67 (patch) | |
tree | 038a53da42972feffed87bd4afe841526dd7220b /include/grpc/support | |
parent | e495476b1e31023637259883aa735fcc716c6adc (diff) |
Move C++ mu_guard class out of C-core public headers and fix style.
Diffstat (limited to 'include/grpc/support')
-rw-r--r-- | include/grpc/support/sync.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/include/grpc/support/sync.h b/include/grpc/support/sync.h index 91d1fa79b5..da820dece5 100644 --- a/include/grpc/support/sync.h +++ b/include/grpc/support/sync.h @@ -277,22 +277,6 @@ GPRAPI intptr_t gpr_stats_read(const gpr_stats_counter* c); #ifdef __cplusplus } // extern "C" - -namespace grpc_core { - -class mu_guard { - 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; - - private: - gpr_mu* const mu_; -}; - -} // namespace grpc_core #endif #endif /* GRPC_SUPPORT_SYNC_H */ |