Acquire/release a RWlockLF RAII-style.
More...
#include <RWlockLF.h>
Acquire/release a RWlockLF RAII-style.
- Author
- Adam McKee
Definition at line 121 of file RWlockLF.h.
◆ RWlockLFguard() [1/2]
utl::RWlockLFguard::RWlockLFguard |
( |
| ) |
|
|
inline |
◆ RWlockLFguard() [2/2]
Constructor.
- Parameters
-
rwlock | RWlockLF to lock |
mode | (io_rd : read-lock, io_wr : write-lock) |
Definition at line 136 of file RWlockLF.h.
◆ ~RWlockLFguard()
utl::RWlockLFguard::~RWlockLFguard |
( |
| ) |
|
|
inline |
◆ lock() [1/2]
Acquire read- or write-lock.
- Parameters
-
rwlock | RWlockLF to lock |
mode | (io_rd : read-lock, io_wr : write-lock) |
Definition at line 155 of file RWlockLF.h.
◆ lock() [2/2]
void utl::RWlockLFguard::lock |
( |
uint_t |
mode | ) |
|
|
inline |
Acquire read- or write-lock.
- Parameters
-
mode | (io_rd : read-lock, io_wr : write-lock) |
Definition at line 167 of file RWlockLF.h.
References utl::io_rd.
◆ rdlock() [1/2]
void utl::RWlockLFguard::rdlock |
( |
RWlockLF * |
rwlock | ) |
|
|
inline |
Acquire read-lock.
- Parameters
-
Definition at line 177 of file RWlockLF.h.
◆ wrlock() [1/2]
void utl::RWlockLFguard::wrlock |
( |
RWlockLF * |
rwlock | ) |
|
|
inline |
Acquire write-lock.
- Parameters
-
Definition at line 189 of file RWlockLF.h.
◆ rdlock() [2/2]
void utl::RWlockLFguard::rdlock |
( |
| ) |
|
|
inline |
◆ wrlock() [2/2]
void utl::RWlockLFguard::wrlock |
( |
| ) |
|
|
inline |
◆ trylock() [1/2]
Try to acquire read- or write-lock (without blocking).
- Parameters
-
rwlock | RWlockLF to lock |
mode | (io_rd : read-lock, io_wr : write-lock) |
- Returns
- true if lock acquired, false otherwise
Definition at line 219 of file RWlockLF.h.
◆ trylock() [2/2]
bool utl::RWlockLFguard::trylock |
( |
uint_t |
mode | ) |
|
|
inline |
Try to acquire read- or write-lock (without blocking).
- Parameters
-
mode | (io_rd : read-lock, io_wr : write-lock) |
- Returns
- true if lock acquired, false otherwise
Definition at line 232 of file RWlockLF.h.
References utl::io_rd.
◆ tryrdlock() [1/2]
bool utl::RWlockLFguard::tryrdlock |
( |
RWlockLF * |
rwlock | ) |
|
|
inline |
Try to acquire read-lock (without blocking).
- Parameters
-
- Returns
- true if read-lock acquired, false otherwise
Definition at line 243 of file RWlockLF.h.
◆ trywrlock() [1/2]
bool utl::RWlockLFguard::trywrlock |
( |
RWlockLF * |
rwlock | ) |
|
|
inline |
Try to acquire write-lock (without blocking).
- Parameters
-
- Returns
- true if write-lock acquired, false otherwise
Definition at line 256 of file RWlockLF.h.
◆ tryrdlock() [2/2]
bool utl::RWlockLFguard::tryrdlock |
( |
| ) |
|
|
inline |
Try to acquire read-lock (without blocking).
- Returns
- true if read-lock acquired, false otherwise
Definition at line 268 of file RWlockLF.h.
◆ trywrlock() [2/2]
bool utl::RWlockLFguard::trywrlock |
( |
| ) |
|
|
inline |
Try to acquire write-lock (without blocking).
- Returns
- true if write-lock acquired, false otherwise
Definition at line 279 of file RWlockLF.h.
◆ unlock()
void utl::RWlockLFguard::unlock |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: