A RAII wrapper for os_event_t.
Definition: os0event.h:139
A counter which tracks number of things left to do, which can be incremented or decremented,...
Definition: ut0todo_counter.h:41
Os_event_t m_is_zero
Definition: ut0todo_counter.h:69
Todo_counter()
Initializes the counter to 0.
Definition: ut0todo_counter.h:44
void increment()
Increments the value of the counter.
Definition: ut0todo_counter.h:47
void await_zero()
Returns when the value is zero.
Definition: ut0todo_counter.h:62
void decrement()
Decrements the value of the counter.
Definition: ut0todo_counter.h:54
size_t value()
Returns current value of the counter.
Definition: ut0todo_counter.h:65
size_t m_todos
Definition: ut0todo_counter.h:68
This file contains a set of libraries providing overloads for regular dynamic allocation routines whi...
Definition: aligned_alloc.h:48
The interface to the operating system condition variables.
void os_event_set(os_event_t event)
Sets an event semaphore to the signaled state: lets waiting threads proceed.
Definition: os0event.cc:553
static void os_event_wait(os_event_t e)
Blocking infinite wait on an event, until signalled.
Definition: os0event.h:104
int64_t os_event_reset(os_event_t event)
Resets an event semaphore to the non-signaled state.
Definition: os0event.cc:568
Debug utilities for Innobase.
#define ut_a(EXPR)
Abort execution if EXPR does not evaluate to nonzero.
Definition: ut0dbg.h:93