Class lockable
Defined in File lockable.hpp
Class Documentation
-
class lockable
Simple class allowing explicit declaration that a derived class can be locked (un)conditionally in exclusive write and non-exclusive read-only contexts. Used mainly to reduce the if()s where possible.
Public Functions
-
lockable(void) = default
-
virtual ~lockable(void) = default
Unconditionally lock
mtx
for shared reader access.
Unconditionally lock
mtx
for exclusive access.
Lock
mtx
for read-only access ifcond
isTRUE
. Other readers will still be allowed access to the resource.
Lock
mtx
for exclusive access ifcond
isTRUE
.
Unlock
mtx
for read-only access ifcond
isTRUE
.
Unlock
mtx
for exclusive access ifcond
isTRUE
.
Unconditionally unlock
mtx
for shared reader access.
Unconditionally unlock
mtx
for exclusive access.
-
lockable(void) = default