LLFIO
v2.00
|
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_guard & | operator= (const lock_guard &)=delete |
lock_guard (lock_guard &&o) noexcept | |
lock_guard & | operator= (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_state * | state {nullptr} |
bool | is_locked {false} |
Used by the visitor to control the state lock.