|
LLFIO v2.00
|
RAII locker matching std::unique_lock for lockable_byte_io_handle, but untemplated.
More...
#include "lockable_byte_io_handle.hpp"
Public Member Functions | |
| unique_file_lock (lockable_byte_io_handle &h, lock_kind kind) | |
| unique_file_lock (unique_file_lock &&o) noexcept | |
| unique_file_lock (const unique_file_lock &)=delete | |
| unique_file_lock & | operator= (unique_file_lock &&o) noexcept |
| unique_file_lock & | operator= (const unique_file_lock &)=delete |
| lockable_byte_io_handle * | mutex () const noexcept |
| Returns the associated mutex. | |
| bool | owns_lock () const noexcept |
| True if the associated mutex is owned by this lock. | |
| operator bool () const noexcept | |
| True if the associated mutex is owned by this lock. | |
| lockable_byte_io_handle * | release () noexcept |
| Releases the mutex from management. | |
| result< void > | lock () noexcept |
| Lock the mutex for exclusive access. | |
| bool | try_lock () noexcept |
| Try to lock the mutex for exclusive access. | |
| void | unlock () noexcept |
| Unlock the mutex from exclusive access. | |
| result< void > | lock_shared () noexcept |
| Lock the mutex for shared access. | |
| bool | try_lock_shared () noexcept |
| Try to lock the mutex for shared access. | |
| void | unlock_shared () noexcept |
| Unlock the mutex from shared access. | |
RAII locker matching std::unique_lock for lockable_byte_io_handle, but untemplated.
|
inlineexplicit |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
Lock the mutex for exclusive access.
|
inlinenoexcept |
Lock the mutex for shared access.
|
inlinenoexcept |
Returns the associated mutex.
|
inlineexplicitnoexcept |
True if the associated mutex is owned by this lock.
|
inlinenoexcept |
|
inlinenoexcept |
True if the associated mutex is owned by this lock.
|
inlinenoexcept |
Releases the mutex from management.
|
inlinenoexcept |
Try to lock the mutex for exclusive access.
|
inlinenoexcept |
Try to lock the mutex for shared access.
|
inlinenoexcept |
Unlock the mutex from exclusive access.
|
inlinenoexcept |
Unlock the mutex from shared access.