98 int64_t reset_sig_count);
114 std::chrono::microseconds
timeout,
115 int64_t reset_sig_count);
121 std::chrono::microseconds t) {
143 other.m_event =
nullptr;
A RAII wrapper for os_event_t.
Definition: os0event.h:139
~Os_event_t()
Definition: os0event.h:145
os_event_t m_event
Definition: os0event.h:150
Os_event_t(Os_event_t &&other)
Definition: os0event.h:142
Os_event_t()
Definition: os0event.h:141
static bool timeout(bool(*wait_condition)())
Timeout function.
Definition: log0meb.cc:498
void os_event_global_destroy(void)
Deinitializes support for os_event objects.
Definition: os0event.cc:639
os_event_t os_event_create()
Creates an event semaphore, i.e., a semaphore which may just have two states: signaled and nonsignale...
Definition: os0event.cc:528
constexpr uint32_t OS_SYNC_TIME_EXCEEDED
Return value of os_event_wait_time() when the time is exceeded.
Definition: os0event.h:45
void os_event_global_init(void)
Initializes support for os_event objects.
Definition: os0event.cc:614
bool os_event_try_set(os_event_t event)
Definition: os0event.cc:558
void os_event_destroy(os_event_t &event)
Frees an event object.
Definition: os0event.cc:595
ulint os_event_wait_time_low(os_event_t event, std::chrono::microseconds timeout, int64_t reset_sig_count)
Waits for an event object until it is in the signaled state or a timeout is exceeded.
Definition: os0event.cc:573
static ulint os_event_wait_time(os_event_t e, std::chrono::microseconds t)
Blocking timed wait on an event.
Definition: os0event.h:120
void os_event_wait_low(os_event_t event, int64_t reset_sig_count)
Waits for an event object until it is in the signaled state.
Definition: os0event.cc:585
void os_event_set(os_event_t event)
Sets an event semaphore to the signaled state: lets waiting threads proceed.
Definition: os0event.cc:553
bool os_event_is_set(const os_event_t event)
Check if the event is set.
Definition: os0event.cc:545
static void os_event_wait(os_event_t e)
Blocking infinite wait on an event, until signalled.
Definition: os0event.h:104
struct os_event * os_event_t
Definition: os0event.h:42
int64_t os_event_reset(os_event_t event)
Resets an event semaphore to the non-signaled state.
Definition: os0event.cc:568
Inlined implementation for os_event_*.
required string event
Definition: replication_group_member_actions.proto:32
InnoDB condition variable.
Definition: os0event.cc:63
Version control for database, common definitions, and include files.
unsigned long int ulint
Definition: univ.i:406