MySQL 9.1.0
Source Code Documentation
MutexMonitor Class Reference

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...
 

Detailed Description

Iterate over the mutex meta data.

Constructor & Destructor Documentation

◆ MutexMonitor()

MutexMonitor::MutexMonitor ( )
default

Constructor.

◆ ~MutexMonitor()

MutexMonitor::~MutexMonitor ( )
default

Destructor.

Member Function Documentation

◆ disable()

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.

◆ enable()

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.

◆ iterate()

template<typename Callback >
bool MutexMonitor::iterate ( Callback callback) const
inline

Invoke the callback for each active mutex collection.

Parameters
[in,out]callbackFunctor to call
Returns
false if callback returned false

◆ reset()

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.


The documentation for this class was generated from the following files: