#include <sync0policy.h>
◆ MutexDebug()
template<typename Mutex >
◆ ~MutexDebug()
template<typename Mutex >
◆ destroy()
template<typename Mutex >
Mutex is being destroyed.
◆ enter()
template<typename Mutex >
void MutexDebug< Mutex >::enter |
( |
const Mutex * |
mutex, |
|
|
const char * |
filename, |
|
|
ulint |
line |
|
) |
| |
Called when an attempt is made to lock the mutex.
- Parameters
-
[in] | mutex | Mutex instance to be locked |
[in] | filename | Filename from where it was called |
[in] | line | Line number from where it was called |
◆ get_enter_filename()
template<typename Mutex >
const char * MutexDebug< Mutex >::get_enter_filename |
( |
| ) |
const |
|
inline |
- Returns
- the name of the file from the mutex was acquired
◆ get_enter_line()
template<typename Mutex >
- Returns
- the name of the file from the mutex was acquired
◆ get_thread_id()
template<typename Mutex >
- Returns
- id of the thread that was trying to acquire the mutex
◆ init()
template<typename Mutex >
Called when the mutex is "created".
Note: Not from the constructor but when the mutex is initialised.
- Parameters
-
◆ is_owned()
template<typename Mutex >
- Returns
- true if thread owns the mutex
◆ locked()
template<typename Mutex >
void MutexDebug< Mutex >::locked |
( |
const Mutex * |
mutex, |
|
|
const char * |
filename, |
|
|
ulint |
line |
|
) |
| |
Called when the mutex is locked.
- Parameters
-
[in] | mutex | Mutex instance that was locked |
[in] | filename | Filename from where it was called |
[in] | line | Line number from where it was called |
◆ release()
template<typename Mutex >
void MutexDebug< Mutex >::release |
( |
const Mutex * |
mutex | ) |
|
Called when the mutex is released.
- Parameters
-
[in] | mutex | Mutex that was released |
◆ m_context
template<typename Mutex >
Latch state of the mutex owner.
◆ m_magic_n
template<typename Mutex >
Magic number to check for memory corruption.
The documentation for this class was generated from the following files: