MySQL 9.1.0
Source Code Documentation
|
Read lock guard class for Partitioned_rwlock. More...
#include <partitioned_rwlock.h>
Public Member Functions | |
Partitioned_rwlock_read_guard (Partitioned_rwlock *rwlock, uint thread_id) | |
Acquires read lock on partitioned rwlock on behalf of thread. More... | |
~Partitioned_rwlock_read_guard () | |
void | unlock () |
Release read lock. More... | |
Private Member Functions | |
Partitioned_rwlock_read_guard (const Partitioned_rwlock_read_guard &) | |
Partitioned_rwlock_read_guard & | operator= (const Partitioned_rwlock_read_guard &) |
Private Attributes | |
Partitioned_rwlock * | m_rwlock |
Pointer to partitioned rwlock which was acquired. More... | |
uint | m_thread_id |
Id of thread on which behalf lock was acquired and which is to be used for unlocking. More... | |
Read lock guard class for Partitioned_rwlock.
Supports early unlocking.
|
inline |
Acquires read lock on partitioned rwlock on behalf of thread.
Automatically release lock in destructor.
|
inline |
|
private |
|
private |
|
inline |
Release read 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.
|
private |
Id of thread on which behalf lock was acquired and which is to be used for unlocking.