MySQL 9.1.0
Source Code Documentation
Latched Struct Reference

The latch held by a thread. More...

Public Member Functions

 Latched ()
 Constructor. More...
 
 Latched (const latch_t *latch, latch_level_t level)
 Constructor. More...
 
latch_level_t get_level () const
 
bool operator== (const Latched &rhs) const
 Check if the rhs latch and level match. More...
 

Public Attributes

const latch_tm_latch
 The latch instance. More...
 
latch_level_t m_level
 The latch level. More...
 

Detailed Description

The latch held by a thread.

Constructor & Destructor Documentation

◆ Latched() [1/2]

Latched::Latched ( )
inline

Constructor.

◆ Latched() [2/2]

Latched::Latched ( const latch_t latch,
latch_level_t  level 
)
inline

Constructor.

Parameters
[in]latchLatch instance
[in]levelLevel of latch held

Member Function Documentation

◆ get_level()

latch_level_t Latched::get_level ( ) const
inline
Returns
the latch level

◆ operator==()

bool Latched::operator== ( const Latched rhs) const
inline

Check if the rhs latch and level match.

Parameters
[in]rhsinstance to compare with
Returns
true on match

Member Data Documentation

◆ m_latch

const latch_t* Latched::m_latch

The latch instance.

◆ m_level

latch_level_t Latched::m_level

The latch level.

For buffer blocks we can pass a separate latch level to check against, see buf_block_dbg_add_level()


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