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

#include <virtual_basic_lockable.h>

Inheritance diagram for pw::sync::GenericLockable< LockType >:
pw::sync::GenericBasicLockable< LockType > pw::sync::VirtualBasicLockable

Public Member Functions

bool try_lock ()
 
- Public Member Functions inherited from pw::sync::VirtualBasicLockable
void lock ()
 
void unlock ()
 

Additional Inherited Members

- Protected Types inherited from pw::sync::VirtualBasicLockable
enum class  Operation { kLock , kUnlock }
 
- Protected Member Functions inherited from pw::sync::GenericBasicLockable< LockType >
LockType & impl ()
 

Detailed Description

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

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


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