![]() |
Open FFBoard
Open source force feedback firmware
|
#include <read_write_lock.hpp>
Public Member Functions | |
| virtual void | ReaderLock () |
| virtual void | ReaderUnlock () |
| virtual void | WriterLock () |
| virtual void | WriterUnlock () |
Public Member Functions inherited from cpp_freertos::ReadWriteLock | |
| ReadWriteLock () | |
| virtual | ~ReadWriteLock () |
Additional Inherited Members | |
Protected Attributes inherited from cpp_freertos::ReadWriteLock | |
| int | ReadCount |
| SemaphoreHandle_t | ReadLock |
| SemaphoreHandle_t | ResourceLock |
Concrete derived class that implements a Reader/Writer lock that favors the Readers. That is, with enough aggressive readers, a Writer may starve.
Definition at line 182 of file read_write_lock.hpp.
|
virtual |
Take the lock as a Reader. This allows multiple reader access.
Implements cpp_freertos::ReadWriteLock.
Definition at line 89 of file cread_write_lock.cpp.
|
virtual |
Unlock the Reader.
Implements cpp_freertos::ReadWriteLock.
Definition at line 102 of file cread_write_lock.cpp.
|
virtual |
Take the lock as a Writer. This allows only one thread access.
Implements cpp_freertos::ReadWriteLock.
Definition at line 115 of file cread_write_lock.cpp.
|
virtual |
Unlock the Writer.
Implements cpp_freertos::ReadWriteLock.
Definition at line 121 of file cread_write_lock.cpp.