LLFIO  v2.00
llfio_v2_xxx::unique_file_lock Class Reference

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_lockoperator= (unique_file_lock &&o) noexcept
 
unique_file_lockoperator= (const unique_file_lock &)=delete
 
lockable_byte_io_handlemutex () 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_handlerelease () 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.
 

Detailed Description

RAII locker matching std::unique_lock for lockable_byte_io_handle, but untemplated.


The documentation for this class was generated from the following file: