#include <sync0sync.h>
Public Member Functions | |
UT_LIST_NODE_T (mutex_t) list | |
Public Attributes | |
os_event_t | event |
volatile lock_word_t | lock_word |
os_fast_mutex_t | os_fast_mutex |
ulint | waiters |
const char * | cfile_name |
ulint | cline |
ulong | count_os_wait |
InnoDB mutex
Definition at line 698 of file sync0sync.h.
mutex_struct::UT_LIST_NODE_T | ( | mutex_t | ) |
All allocated mutexes are put into a list. Pointers to the next and prev.
const char* mutex_struct::cfile_name |
File name where mutex created
Definition at line 720 of file sync0sync.h.
Referenced by innodb_mutex_show_status(), mutex_create_func(), and rw_lock_create_func().
ulint mutex_struct::cline |
Line where created
Definition at line 721 of file sync0sync.h.
Referenced by innodb_mutex_show_status(), mutex_create_func(), and rw_lock_create_func().
count of os_wait
Definition at line 729 of file sync0sync.h.
Referenced by innodb_mutex_show_status(), and mutex_create_func().
Used by sync0arr.c for the wait queue
Definition at line 699 of file sync0sync.h.
Referenced by mutex_create_func(), and mutex_free_func().
volatile lock_word_t mutex_struct::lock_word |
lock_word is the target of the atomic test-and-set instruction when atomic operations are enabled.
Definition at line 700 of file sync0sync.h.
Referenced by mutex_create_func().
We use this OS mutex in place of lock_word when atomic operations are not enabled
Definition at line 706 of file sync0sync.h.
Referenced by mutex_create_func(), and mutex_free_func().
ulint mutex_struct::waiters |
This ulint is set to 1 if there are (or may be) threads waiting in the global wait array for this mutex to be released. Otherwise, this is 0.
Definition at line 709 of file sync0sync.h.