LLFIO
v2.00
|
EXTENSION: RAII holder a locked extent of bytes in a file. More...
#include "lockable_byte_io_handle.hpp"
Public Member Functions | |
extent_guard (const extent_guard &)=delete | |
extent_guard & | operator= (const extent_guard &)=delete |
constexpr | extent_guard () |
Default constructor. | |
extent_guard (extent_guard &&o) noexcept | |
Move constructor. | |
extent_guard & | operator= (extent_guard &&o) noexcept |
Move assign. | |
operator bool () const noexcept | |
True if extent guard is valid. | |
lockable_byte_io_handle * | handle () const noexcept |
The lockable_byte_io_handle to be unlocked. | |
void | set_handle (lockable_byte_io_handle *h) noexcept |
Sets the lockable_byte_io_handle to be unlocked. | |
std::tuple< extent_type, extent_type, lock_kind > | extent () const noexcept |
The extent to be unlocked. | |
void | unlock () noexcept |
Unlocks the locked extent immediately. | |
void | release () noexcept |
Detach this RAII unlocker from the locked state. | |
Protected Member Functions | |
constexpr | extent_guard (lockable_byte_io_handle *h, extent_type offset, extent_type length, lock_kind kind) |
Friends | |
class | lockable_byte_io_handle |
EXTENSION: RAII holder a locked extent of bytes in a file.