MySQL 8.4.2
Source Code Documentation
|
Write lock guard class for Partitioned_rwlock. More...
#include <partitioned_rwlock.h>
Public Member Functions | |
Partitioned_rwlock_write_guard (Partitioned_rwlock *rwlock) | |
Acquires write lock on partitioned rwlock. More... | |
~Partitioned_rwlock_write_guard () | |
void | unlock () |
Release write lock. More... | |
Private Member Functions | |
Partitioned_rwlock_write_guard (const Partitioned_rwlock_write_guard &) | |
Partitioned_rwlock_write_guard & | operator= (const Partitioned_rwlock_write_guard &) |
Private Attributes | |
Partitioned_rwlock * | m_rwlock |
Pointer to partitioned rwlock which was acquired. More... | |
Write lock guard class for Partitioned_rwlock.
Supports early unlocking.
|
inlineexplicit |
Acquires write lock on partitioned rwlock.
Automatically release it in destructor.
|
inline |
|
private |
|
private |
|
inline |
Release write lock.
Optional method for early unlocking.
|
private |
Pointer to partitioned rwlock which was acquired.
NULL if lock was released early so destructor should not do anything.