Go to the source code of this file.
◆ anonymous enum
Enumerator |
---|
event_sync_partitions | |
Definition at line 31 of file sync.cc.
◆ event_initialize()
static void event_initialize |
( |
void |
| ) |
|
|
static |
◆ gpr_event_get()
Return the value set by gpr_event_set(ev, ...), or NULL if no such call has completed. If the result is non-NULL, all operations that occurred prior to the gpr_event_set(ev, ...) set will be visible after this call returns. Requires: *ev initialized. This operation is faster than acquiring a mutex on most platforms.
Definition at line 69 of file sync.cc.
◆ gpr_event_init()
— One-time event notification —
These operations act on a gpr_event, which should be initialized with gpr_ev_init(), or with GPR_EVENT_INIT if static, e.g., static gpr_event event_var = GPR_EVENT_INIT; It requires no destruction.
Initialize *ev.
Definition at line 54 of file sync.cc.
◆ gpr_event_set()
void gpr_event_set |
( |
gpr_event * |
ev, |
|
|
void * |
value |
|
) |
| |
Set *ev so that gpr_event_get() and gpr_event_wait() will return value. Requires: *ev initialized; value != NULL; no prior or concurrent calls to gpr_event_set(ev, ...) since initialization.
Definition at line 59 of file sync.cc.
◆ gpr_event_wait()
Wait until *ev is set by gpr_event_set(ev, ...), or abs_deadline is exceeded, then return gpr_event_get(ev). Requires: *ev initialized. Use abs_deadline==gpr_inf_future for no deadline. When the event has been signalled before the call, this operation is faster than acquiring a mutex on most platforms.
Definition at line 73 of file sync.cc.
◆ gpr_ref()
Increment the reference count *r. Requires *r initialized.
Definition at line 88 of file sync.cc.
◆ gpr_ref_init()
— Reference counting —
These calls act on the type gpr_refcount. It requires no destruction.
Initialize *r to value n.
Definition at line 86 of file sync.cc.
◆ gpr_ref_is_unique()
Return non-zero iff the reference count of *r is one, and thus is owned by exactly one object.
Definition at line 109 of file sync.cc.
◆ gpr_ref_non_zero()
Increment the reference count *r. Requires *r initialized. Crashes if refcount is zero
Definition at line 90 of file sync.cc.
◆ gpr_refn()
Increment the reference count *r by n. Requires *r initialized, n > 0.
Definition at line 99 of file sync.cc.
◆ gpr_stats_inc()
*c += inc. Requires: *c initialized.
Definition at line 117 of file sync.cc.
◆ gpr_stats_init()
— Stats counters —
These calls act on the integral type gpr_stats_counter. It requires no destruction. Static instances may be initialized with gpr_stats_counter c = GPR_STATS_INIT; Beware: These operations do not imply memory barriers. Do not use them to synchronize other events.
Initialize *c to the value n.
Definition at line 113 of file sync.cc.
◆ gpr_stats_read()
Return *c. Requires: *c initialized.
Definition at line 121 of file sync.cc.
◆ gpr_unref()
Decrement the reference count *r and return non-zero iff it has reached zero. . Requires *r initialized.
Definition at line 103 of file sync.cc.
◆ hash()
◆ event_once
◆ sync_array