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> {};
Public Member Functions | |
bool | try_lock () |
![]() | |
void | lock () |
void | unlock () |
Additional Inherited Members | |
![]() | |
enum class | Operation { kLock , kUnlock } |
![]() | |
LockType & | impl () |