aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2018-08-17 11:56:24 -0700
committerGravatar GitHub <noreply@github.com>2018-08-17 11:56:24 -0700
commit8ba45636295019b101c1e9579423d4de41c4c59e (patch)
tree70c47e63f1a13407db1813a1f639260b6d5d0a96 /include/grpc
parentb8972046b44eb1ccfa5be05df75ac967ab4c4738 (diff)
parent7a7e4f56529c4da16ec6a3035e7b3bdf9dfb6f67 (diff)
Merge pull request #16373 from markdroth/mu_guard_cleanup
Move C++ mu_guard class out of C-core public headers and fix style.
Diffstat (limited to 'include/grpc')
-rw-r--r--include/grpc/support/sync.h16
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 */