34 #ifndef GRPCXX_IMPL_SYNC_NO_CXX11_H
35 #define GRPCXX_IMPL_SYNC_NO_CXX11_H
37 #include <grpc/support/sync.h>
41 template <
class mutex>
52 template <
class mutex>
57 template <
class mutex>
65 if (!locked) gpr_mu_lock(&mu_.mu_);
69 if (locked) gpr_mu_unlock(&mu_.mu_);
79 template <
class mutex>
93 gpr_cv_wait(&cv_, &mu.mu_.mu_, gpr_inf_future(GPR_CLOCK_REALTIME));
105 #endif // GRPCXX_IMPL_SYNC_NO_CXX11_H
Definition: sync_no_cxx11.h:45
void unlock_internal()
Definition: sync_no_cxx11.h:68
void lock_internal()
Definition: sync_no_cxx11.h:64
Definition: sync_no_cxx11.h:87
~condition_variable()
Definition: sync_no_cxx11.h:90
~lock_guard()
Definition: sync_no_cxx11.h:61
void notify_all()
Definition: sync_no_cxx11.h:97
mutex()
Definition: sync_no_cxx11.h:47
void notify_one()
Definition: sync_no_cxx11.h:96
void unlock()
Definition: sync_no_cxx11.h:84
lock_guard(mutex &mu)
Definition: sync_no_cxx11.h:60
void lock()
Definition: sync_no_cxx11.h:83
~mutex()
Definition: sync_no_cxx11.h:48
Definition: sync_no_cxx11.h:42
condition_variable()
Definition: sync_no_cxx11.h:89
Definition: sync_no_cxx11.h:80
unique_lock(mutex &mu)
Definition: sync_no_cxx11.h:82
void wait(lock_guard< mutex > &mu)
Definition: sync_no_cxx11.h:91