![]() |
MySQL 8.0.43
Source Code Documentation
|
Iterate over the mutex meta data. More...
#include <ut0mutex.h>
Public Member Functions | |
| MutexMonitor ()=default | |
| Constructor. More... | |
| ~MutexMonitor ()=default | |
| Destructor. More... | |
| void | enable () |
| Enable the mutex monitoring. More... | |
| void | disable () |
| Disable the mutex monitoring. More... | |
| void | reset () |
| Reset the mutex monitoring values. More... | |
| template<typename Callback > | |
| bool | iterate (Callback &callback) const 1 |
| Invoke the callback for each active mutex collection. More... | |
Iterate over the mutex meta data.
|
default |
Constructor.
|
default |
Destructor.
| void MutexMonitor::disable | ( | ) |
Disable the mutex monitoring.
Note: We don't add any latch meta-data after startup. Therefore there is no need to use a mutex here.
| void MutexMonitor::enable | ( | ) |
Enable the mutex monitoring.
Note: We don't add any latch meta-data after startup. Therefore there is no need to use a mutex here.
Invoke the callback for each active mutex collection.
| [in,out] | callback | Functor to call |
| void MutexMonitor::reset | ( | void | ) |
Reset the mutex monitoring values.
Reset the mutex monitoring counters.
Note: We don't add any latch meta-data after startup. Therefore there is no need to use a mutex here.