34 #ifndef GRPCXX_IMPL_SYNC_NO_CXX11_H
35 #define GRPCXX_IMPL_SYNC_NO_CXX11_H
37 #include <grpc/support/sync.h>
51 template <
class mutex>
56 template <
class mutex>
63 if (!locked) gpr_mu_lock(&mu_.mu_);
67 if (locked) gpr_mu_unlock(&mu_.mu_);
76 template <
class mutex>
90 gpr_cv_wait(&cv_, &mu.mu_.mu_, gpr_inf_future(GPR_CLOCK_REALTIME));
101 #endif // GRPCXX_IMPL_SYNC_NO_CXX11_H
Definition: sync_no_cxx11.h:45
void unlock_internal()
Definition: sync_no_cxx11.h:66
void lock_internal()
Definition: sync_no_cxx11.h:62
Definition: sync_no_cxx11.h:84
~condition_variable()
Definition: sync_no_cxx11.h:87
~lock_guard()
Definition: sync_no_cxx11.h:60
void notify_all()
Definition: sync_no_cxx11.h:94
mutex()
Definition: sync_no_cxx11.h:47
void notify_one()
Definition: sync_no_cxx11.h:93
void unlock()
Definition: sync_no_cxx11.h:81
lock_guard(mutex &mu)
Definition: sync_no_cxx11.h:59
void lock()
Definition: sync_no_cxx11.h:80
~mutex()
Definition: sync_no_cxx11.h:48
Definition: sync_no_cxx11.h:42
condition_variable()
Definition: sync_no_cxx11.h:86
Definition: sync_no_cxx11.h:77
unique_lock(mutex &mu)
Definition: sync_no_cxx11.h:79
void wait(lock_guard< mutex > &mu)
Definition: sync_no_cxx11.h:88