#include <virtual_basic_lockable.h>
Public Member Functions | |
bool | try_lock () |
![]() | |
void | lock () |
void | unlock () |
Additional Inherited Members | |
![]() | |
enum class | Operation { kLock , kUnlock } |
![]() | |
LockType & | impl () |
Templated base class to facilitate making "Virtual{LockType}" from a "LockType" class that derives from VirtualBasicLockable
, and also meets the C++ named Lockable requirements by providing try_lock().
Example: class VirtualMutex : public GenericLockable<Mutex> {};