FreeRTOScpp
|
A Base class to provide block based locking capability. More...
#include <Lock.h>
Public Member Functions | |
Lockable () | |
virtual | ~Lockable () |
virtual bool | give ()=0 |
virtual bool | take (TickType_t wait=portMAX_DELAY)=0 |
Private Member Functions | |
Lockable (Lockable const &)=delete | |
We are not copyable. | |
void | operator= (Lockable const &)=delete |
We are not assignable. | |
A Base class to provide block based locking capability.
Any object that supports "Locking" should be derived from Lockable (like a Semaphore or Mutex)
Such objects need to provide an interface consisting of
|
inline |
|
inlinevirtual |
|
privatedelete |
We are not copyable.
|
pure virtual |
Implemented in BinarySemaphore, Mutex, Reader, RecursiveMutex, and Writer.
Referenced by Lock::~Lock(), and Lock::unlock().
|
privatedelete |
We are not assignable.
|
pure virtual |
Implemented in BinarySemaphore, Mutex, Reader, RecursiveMutex, and Writer.
Referenced by Lock::lock().