Drizzled Public API Documentation

mutex_struct Struct Reference

#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
 

Detailed Description

InnoDB mutex

Definition at line 697 of file sync0sync.h.

Member Function Documentation

mutex_struct::UT_LIST_NODE_T ( mutex_t  )
             All allocated mutexes are put into

a list. Pointers to the next and prev.

Member Data Documentation

const char* mutex_struct::cfile_name

File name where mutex created

Definition at line 719 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 720 of file sync0sync.h.

Referenced by innodb_mutex_show_status(), mutex_create_func(), and rw_lock_create_func().

ulong mutex_struct::count_os_wait

count of os_wait

Definition at line 728 of file sync0sync.h.

Referenced by innodb_mutex_show_status(), and mutex_create_func().

os_event_t mutex_struct::event

Used by sync0arr.c for the wait queue

Definition at line 698 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 699 of file sync0sync.h.

Referenced by mutex_create_func().

os_fast_mutex_t mutex_struct::os_fast_mutex
             We use this OS mutex in place of lock_word

when atomic operations are not enabled

Definition at line 705 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 708 of file sync0sync.h.


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