LLFIO  v2.00
llfio_v2_xxx::lockable_byte_io_handle::extent_guard Class Reference

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_guardoperator= (const extent_guard &)=delete
 
constexpr extent_guard ()
 Default constructor.
 
 extent_guard (extent_guard &&o) noexcept
 Move constructor.
 
extent_guardoperator= (extent_guard &&o) noexcept
 Move assign.
 
 operator bool () const noexcept
 True if extent guard is valid.
 
lockable_byte_io_handlehandle () 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_kindextent () 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
 

Detailed Description

EXTENSION: RAII holder a locked extent of bytes in a file.


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