LLFIO
v2.00
|
RAII holder for a lock on a sequence of entities. More...
#include "base.hpp"
Public Member Functions | |
entities_guard (shared_fs_mutex *_parent, entities_type _entities) | |
entities_guard (shared_fs_mutex *_parent, entity_type entity) | |
entities_guard (const entities_guard &)=delete | |
entities_guard & | operator= (const entities_guard &)=delete |
entities_guard (entities_guard &&o) noexcept | |
entities_guard & | operator= (entities_guard &&o) noexcept |
operator bool () const noexcept | |
True if extent guard is valid. | |
bool | operator! () const noexcept |
True if extent guard is invalid. | |
void | unlock () noexcept |
Unlocks the locked entities immediately. | |
void | release () noexcept |
Detach this RAII unlocker from the locked state. | |
Public Attributes | |
shared_fs_mutex * | parent {nullptr} |
entities_type | entities |
unsigned long long | hint {0} |
RAII holder for a lock on a sequence of entities.