MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sync_cell_t Struct Reference
Collaboration diagram for sync_cell_t:

Public Attributes

void * wait_object
ib_mutex_told_wait_mutex
rw_lock_told_wait_rw_lock
ulint request_type
const char * file
ulint line
os_thread_id_t thread
ibool waiting
ib_int64_t signal_count
time_t reservation_time

Detailed Description

A cell where an individual thread may wait suspended

until a resource is released. The suspending is implemented using an operating system event semaphore.

Definition at line 82 of file sync0arr.cc.

Member Data Documentation

const char* sync_cell_t::file

in debug version file where requested

Definition at line 92 of file sync0arr.cc.

ulint sync_cell_t::line

in debug version line where requested

Definition at line 94 of file sync0arr.cc.

ib_mutex_t* sync_cell_t::old_wait_mutex

the latest wait mutex in cell

Definition at line 86 of file sync0arr.cc.

rw_lock_t* sync_cell_t::old_wait_rw_lock

the latest wait rw-lock in cell

Definition at line 88 of file sync0arr.cc.

ulint sync_cell_t::request_type

lock type requested on the object

Definition at line 90 of file sync0arr.cc.

time_t sync_cell_t::reservation_time

time when the thread reserved the wait cell

Definition at line 109 of file sync0arr.cc.

ib_int64_t sync_cell_t::signal_count

We capture the signal_count of the wait_object when we reset the event. This value is then passed on to os_event_wait and we wait only if the event has not been signalled in the period between the reset and wait call.

Definition at line 101 of file sync0arr.cc.

os_thread_id_t sync_cell_t::thread

thread id of this waiting thread

Definition at line 96 of file sync0arr.cc.

void* sync_cell_t::wait_object

pointer to the object the thread is waiting for; if NULL the cell is free for use

Definition at line 83 of file sync0arr.cc.

ibool sync_cell_t::waiting

TRUE if the thread has already called sync_array_event_wait on this cell

Definition at line 98 of file sync0arr.cc.


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