drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
mutex_struct Struct Reference

#include <sync0sync.h>

Collaboration diagram for mutex_struct:
[legend]

Public Member Functions

 UT_LIST_NODE_T (mutex_t) list

Public Attributes

os_event_t event
volatile lock_word_t lock_word
ulint waiters
const char * cfile_name
ulint cline
ulong count_os_wait

Detailed Description

InnoDB mutex

Definition at line 677 of file sync0sync.h.

Member Function Documentation

◆ UT_LIST_NODE_T()

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

◆ cfile_name

const char* mutex_struct::cfile_name

File name where mutex created

Definition at line 699 of file sync0sync.h.

◆ cline

ulint mutex_struct::cline

Line where created

Definition at line 700 of file sync0sync.h.

◆ count_os_wait

ulong mutex_struct::count_os_wait

count of os_wait

Definition at line 708 of file sync0sync.h.

◆ event

os_event_t mutex_struct::event

Used by sync0arr.c for the wait queue

Definition at line 678 of file sync0sync.h.

◆ lock_word

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 679 of file sync0sync.h.

◆ waiters

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 688 of file sync0sync.h.


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