Go to the documentation of this file.
21 #if defined(GPR_ABSEIL_SYNC) && !defined(GPR_CUSTOM_SYNC)
26 #include "absl/base/call_once.h"
27 #include "absl/synchronization/mutex.h"
28 #include "absl/time/clock.h"
29 #include "absl/time/time.h"
38 #ifdef GPR_LOW_LEVEL_COUNTERS
40 gpr_atm gpr_counter_atm_cas = 0;
41 gpr_atm gpr_counter_atm_add = 0;
46 "gpr_mu and Mutex must be the same size");
73 "gpr_cv and CondVar must be the same size");
90 timespec ts = {
static_cast<decltype(ts.tv_sec)
>(abs_deadline.
tv_sec),
91 static_cast<decltype(ts.tv_nsec)
>(abs_deadline.
tv_nsec)};
110 "gpr_once and absl::once_flag must be the same size");
GPRAPI void gpr_cv_signal(gpr_cv *cv)
GPRAPI void gpr_mu_unlock(gpr_mu *mu)
#define GPR_TIMER_SCOPE(tag, important)
GPRAPI gpr_timespec gpr_inf_future(gpr_clock_type type)
GPRAPI void gpr_once_init(gpr_once *once, void(*init_function)(void))
void call_once(absl::once_flag &flag, Callable &&fn, Args &&... args)
GPRAPI void gpr_mu_destroy(gpr_mu *mu)
GPRAPI int gpr_time_cmp(gpr_timespec a, gpr_timespec b)
GPRAPI void gpr_cv_destroy(gpr_cv *cv)
GPRAPI void gpr_mu_init(gpr_mu *mu)
GPRAPI int gpr_cv_wait(gpr_cv *cv, gpr_mu *mu, gpr_timespec abs_deadline)
GPRAPI void gpr_mu_lock(gpr_mu *mu)
gpr_clock_type clock_type
absl::Time TimeFromTimespec(timespec ts)
GPRAPI gpr_timespec gpr_convert_clock_type(gpr_timespec t, gpr_clock_type clock_type)
GPRAPI int gpr_mu_trylock(gpr_mu *mu)
GPRAPI void gpr_cv_broadcast(gpr_cv *cv)
#define GPR_TIMER_MARK(tag, important)
GPRAPI void gpr_cv_init(gpr_cv *cv)
#define ABSL_NO_THREAD_SAFETY_ANALYSIS
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:24