Pigweed
Loading...
Searching...
No Matches
pw::sync::GenericBasicLockable< LockType > Class Template Reference

#include <virtual_basic_lockable.h>

Protected Member Functions

LockType & impl ()
 

Additional Inherited Members

- Public Member Functions inherited from pw::sync::VirtualBasicLockable
void lock ()
 
void unlock ()
 
- Protected Types inherited from pw::sync::VirtualBasicLockable
enum class  Operation { kLock , kUnlock }
 

Detailed Description

template<typename LockType>
class pw::sync::GenericBasicLockable< LockType >

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> {};


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