MySQL 26.10.0
Source Code Documentation
hm::rwlock_guard Class Reference

Scoped r/w lock. More...

#include <health_monitor_lock.h>

Public Member Functions

 rwlock_guard (mysql_rwlock_t *lock, bool write, const char *file, int line)
 Acquire a scoped lock on a r/w lock. More...
 
 rwlock_guard (rwlock_guard &&lock) noexcept
 
 ~rwlock_guard ()
 

Private Attributes

mysql_rwlock_t * m_lock
 

Detailed Description

Scoped r/w lock.

Constructor & Destructor Documentation

◆ rwlock_guard() [1/2]

hm::rwlock_guard::rwlock_guard ( mysql_rwlock_t *  lock,
bool  write,
const char *  file,
int  line 
)

Acquire a scoped lock on a r/w lock.

Parameters
lockLock object
writeTrue if write lock
fileSource file name
lineSource line number

◆ rwlock_guard() [2/2]

hm::rwlock_guard::rwlock_guard ( rwlock_guard &&  lock)
noexcept

◆ ~rwlock_guard()

hm::rwlock_guard::~rwlock_guard ( )

Member Data Documentation

◆ m_lock

mysql_rwlock_t* hm::rwlock_guard::m_lock
private

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