Drizzled Public API Documentation

sync_array_struct Struct Reference

Public Attributes

ulint n_reserved
ulint n_cells
sync_cell_tarray
ulint protection
mutex_t mutex
os_mutex_t os_mutex
ulint sg_count
ulint res_count

Detailed Description

Synchronization array

Definition at line 118 of file sync0arr.cc.

Member Data Documentation

sync_cell_t* sync_array_struct::array

pointer to wait array

Definition at line 123 of file sync0arr.cc.

Referenced by sync_array_create(), and sync_array_free().

mutex_t sync_array_struct::mutex

possible database mutex protecting this data structure

Definition at line 126 of file sync0arr.cc.

Referenced by sync_array_create(), and sync_array_free().

ulint sync_array_struct::n_cells

number of cells in the wait array

Definition at line 121 of file sync0arr.cc.

Referenced by sync_array_create(), sync_array_print_long_waits(), sync_array_reserve_cell(), and sync_array_validate().

ulint sync_array_struct::n_reserved

number of currently reserved cells in the wait array

Definition at line 119 of file sync0arr.cc.

Referenced by sync_array_free(), sync_array_free_cell(), sync_array_reserve_cell(), and sync_array_validate().

os_mutex_t sync_array_struct::os_mutex

Possible operating system mutex protecting the data structure. As this data structure is used in constructing the database mutex, to prevent infinite recursion in implementation, we fall back to an OS mutex.

Definition at line 128 of file sync0arr.cc.

Referenced by sync_array_create(), and sync_array_free().

ulint sync_array_struct::protection

this flag tells which mutex protects the data

Definition at line 124 of file sync0arr.cc.

Referenced by sync_array_create(), and sync_array_free().

ulint sync_array_struct::res_count

count of cell reservations since creation of the array

Definition at line 137 of file sync0arr.cc.

Referenced by sync_array_reserve_cell().

ulint sync_array_struct::sg_count

count of how many times an object has been signalled

Definition at line 135 of file sync0arr.cc.

Referenced by sync_array_object_signalled().


The documentation for this struct was generated from the following file: