const std::string FILE("FILE")
required string type
Definition: replication_group_member_actions.proto:34
Synchronization array.
Definition: sync0arr_impl.h:123
A cell where an individual thread may wait suspended until a resource is released.
Definition: sync0arr_impl.h:83
void sync_array_init(ulint n_threads)
Create the primary system wait array(s), they are protected by an OS mutex.
Definition: sync0arr.cc:941
static sync_array_t * sync_array_get_and_reserve_cell(void *object, ulint type, ut::Location location, sync_cell_t **cell)
Get an instance of the sync wait array and reserve a wait array cell in the instance for waiting for ...
void sync_array_detect_deadlock()
Definition: sync0arr.cc:281
void sync_array_object_signalled()
Note that one of the wait objects was signalled.
Definition: sync0arr.cc:738
void sync_array_wait_event(sync_array_t *arr, sync_cell_t *&cell)
This function should be called when a thread starts to wait on a wait array cell.
Definition: sync0arr.cc:311
void sync_array_print(FILE *file)
Prints info of the wait array.
Definition: sync0arr.cc:972
sync_cell_t * sync_array_reserve_cell(sync_array_t *arr, void *object, ulint type, ut::Location location)
Reserves a wait array cell for waiting for an object.
Definition: sync0arr.cc:180
void sync_array_close()
Close sync array wait sub-system.
Definition: sync0arr.cc:962
static sync_array_t * sync_array_get()
Get an instance of the sync wait array.
void sync_array_free_cell(sync_array_t *arr, sync_cell_t *&cell)
Frees the cell.
Definition: sync0arr.cc:244
bool sync_array_print_long_waits(std::thread::id *waiter, const void **sema)
Prints warnings of long semaphore waits to stderr.
Definition: sync0arr.cc:854
void sync_arr_wake_threads_if_sema_free()
If the wakeup algorithm does not work perfectly at semaphore releases, this function will do the waki...
Definition: sync0arr.cc:776
The wait array for synchronization primitives.
Version control for database, common definitions, and include files.
unsigned long int ulint
Definition: univ.i:406
unsigned long id[MAX_DEAD]
Definition: xcom_base.cc:510