AFIO  v2.00 late alpha
afio_v2_xxx::algorithm::shared_fs_mutex::shared_fs_mutex::entities_guard Class Reference

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_guardoperator= (const entities_guard &)=delete
 
 entities_guard (entities_guard &&o) noexcept
 
entities_guardoperator= (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_mutexparent {nullptr}
 
entities_type entities
 
unsigned long long hint {0}
 

Detailed Description

RAII holder for a lock on a sequence of entities.


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