MySQL 8.0.32
Source Code Documentation
IB_mutex_guard Struct Reference

#include <ut0mutex.h>

Public Member Functions

 IB_mutex_guard (ib_mutex_t *in_mutex, const ut::Location &location)
 Constructor to acquire mutex. More...
 
 ~IB_mutex_guard ()
 Destructor to release mutex. More...
 
 IB_mutex_guard (IB_mutex_guard const &)=delete
 Disable copy construction. More...
 
IB_mutex_guardoperator= (IB_mutex_guard const &)=delete
 Disable assignment. More...
 

Private Member Functions

void clear ()
 

Private Attributes

ib_mutex_t * m_mutex
 Current mutex for RAII. More...
 

Constructor & Destructor Documentation

◆ IB_mutex_guard() [1/2]

IB_mutex_guard::IB_mutex_guard ( ib_mutex_t *  in_mutex,
const ut::Location location 
)
inline

Constructor to acquire mutex.

Parameters
[in]in_mutexinput mutex
[in]locationdefines source file and line in code where the constructor of IB_mutex_guard is called

◆ ~IB_mutex_guard()

IB_mutex_guard::~IB_mutex_guard ( )
inline

Destructor to release mutex.

◆ IB_mutex_guard() [2/2]

IB_mutex_guard::IB_mutex_guard ( IB_mutex_guard const &  )
delete

Disable copy construction.

Member Function Documentation

◆ clear()

void IB_mutex_guard::clear ( )
inlineprivate

◆ operator=()

IB_mutex_guard & IB_mutex_guard::operator= ( IB_mutex_guard const &  )
delete

Disable assignment.

Member Data Documentation

◆ m_mutex

ib_mutex_t* IB_mutex_guard::m_mutex
private

Current mutex for RAII.


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