MySQL 8.0.40
Source Code Documentation
|
For passing context to SyncDebug. More...
#include <sync0policy.h>
Public Member Functions | |
Context () | |
Constructor. More... | |
Context (latch_id_t id) | |
Create the context for SyncDebug. More... | |
void | locked (const Mutex *mutex, const char *filename, ulint line) 1 |
Set to locked state. More... | |
void | release () 1 |
Reset to unlock state. More... | |
std::string | to_string () const override 1 |
Print information about the latch. More... | |
virtual std::string | locked_from () const override |
Public Member Functions inherited from latch_t | |
latch_t (latch_id_t id=LATCH_ID_NONE) 1 | |
Constructor. More... | |
latch_t & | operator= (const latch_t &)=default |
virtual | ~latch_t () 1=default |
Destructor. More... | |
latch_id_t | get_id () const |
bool | is_rw_lock () const 1 |
latch_level_t | get_level () const 1 |
bool | is_temp_fsp () const 1 |
void | set_temp_fsp () 1 |
Set the temporary tablespace flag. More... | |
const char * | get_name () const 1 |
Public Attributes | |
const Mutex * | m_mutex |
Mutex to check for lock order violation. More... | |
const char * | m_filename |
Filename from where enter was called. More... | |
ulint | m_line |
Line number in filename. More... | |
std::thread::id | m_thread_id |
Thread ID of the thread that own(ed) the mutex. More... | |
Public Attributes inherited from latch_t | |
latch_id_t | m_id |
Latch ID. More... | |
bool | m_rw_lock |
true if it is a rw-lock. More... | |
bool | m_temp_fsp |
true if it is an temporary space latch More... | |
For passing context to SyncDebug.
|
inline |
Constructor.
|
inline |
Create the context for SyncDebug.
[in] | id | ID of the latch to track |
|
inline |
Set to locked state.
[in] | mutex | The mutex to acquire |
[in] | filename | File name from where to acquire |
[in] | line | Line number in filename |
|
inlineoverridevirtual |
Implements latch_t.
|
inline |
Reset to unlock state.
|
inlineoverridevirtual |
const char* MutexDebug< Mutex >::Context::m_filename |
Filename from where enter was called.
ulint MutexDebug< Mutex >::Context::m_line |
Line number in filename.
const Mutex* MutexDebug< Mutex >::Context::m_mutex |
Mutex to check for lock order violation.
std::thread::id MutexDebug< Mutex >::Context::m_thread_id |
Thread ID of the thread that own(ed) the mutex.