LLFIO  v2.00
llfio_v2_xxx::byte_io_multiplexer::io_operation_state::lock_guard Struct Reference

Used by the visitor to control the state lock. More...

#include "byte_io_multiplexer.hpp"

Public Member Functions

 lock_guard (io_operation_state *_state, bool lock=true)
 Construct an instance.
 
 lock_guard (const lock_guard &)=delete
 
lock_guardoperator= (const lock_guard &)=delete
 
 lock_guard (lock_guard &&o) noexcept
 
lock_guardoperator= (lock_guard &&o) noexcept
 
void unlock ()
 Unlocks the lock, if it is locked.
 
void lock ()
 Relocks the lock, if it is unlocked.
 

Public Attributes

io_operation_statestate {nullptr}
 
bool is_locked {false}
 

Detailed Description

Used by the visitor to control the state lock.


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