MySQL 8.0.40
Source Code Documentation
|
Locks RW-lock and releases lock on scope exit. More...
#include <rwlock_scoped_lock.h>
Public Member Functions | |
rwlock_scoped_lock (mysql_rwlock_t *lock, bool lock_for_write, const char *file, int line) | |
Acquires lock on specified lock object. More... | |
rwlock_scoped_lock (rwlock_scoped_lock &&lock) | |
Moves lock from another object. More... | |
rwlock_scoped_lock (const rwlock_scoped_lock &)=delete | |
~rwlock_scoped_lock () | |
rwlock_scoped_lock & | operator= (const rwlock_scoped_lock &)=delete |
Private Attributes | |
mysql_rwlock_t * | m_lock |
Locks RW-lock and releases lock on scope exit.
rwlock_scoped_lock::rwlock_scoped_lock | ( | mysql_rwlock_t * | lock, |
bool | lock_for_write, | ||
const char * | file, | ||
int | line | ||
) |
Acquires lock on specified lock object.
The lock may be NULL, in which case this is a no-op.
lock | Lock object to lock. |
lock_for_write | Specifies if to lock for write or read. |
file | File in which lock acquisition is to be presented. |
line | Line of file in which lock acquisition is to be presented. |
rwlock_scoped_lock::rwlock_scoped_lock | ( | minimal_chassis::rwlock_scoped_lock && | lock | ) |
Moves lock from another object.
lock | Scoped lock object to move from. |
|
delete |
rwlock_scoped_lock::~rwlock_scoped_lock | ( | ) |
|
delete |
|
private |