Drizzled Public API Documentation

mutex_struct Struct Reference

#include <sync0sync.h>

List of all members.

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 698 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

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().

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().

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.


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