Pigweed
|
#include <virtual_basic_lockable.h>
Protected Member Functions | |
LockType & | impl () |
Additional Inherited Members | |
![]() | |
void | lock () |
void | unlock () |
![]() | |
enum class | Operation { kLock , kUnlock } |
Templated base class to facilitate making "Virtual{LockType}" from a "LockType" class that provides lock()
and unlock()
methods. The resulting classes will derive from VirtualBasicLockable
.
Example: class VirtualMutex : public GenericBasicLockable<Mutex> {};