MySQL 8.0.39
Source Code Documentation
|
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_t * | m_latch |
The latch instance. More... | |
latch_level_t | m_level |
The latch level. More... | |
The latch held by a thread.
|
inline |
Constructor.
|
inline |
Constructor.
[in] | latch | Latch instance |
[in] | level | Level of latch held |
|
inline |
|
inline |
Check if the rhs latch and level match.
[in] | rhs | instance to compare with |
const latch_t* Latched::m_latch |
The latch instance.
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()