|
Base Module
VST 3.6.6
SDK for developing VST Plug-in
|
FRwLock - read / write lock. More...
#include <fthread.h>
Public Member Functions | |
| FRwLock (const char8 *name="FRwLock", bool writerPreference=false) | |
| FRwLock constructor. More... | |
| ~FRwLock () | |
| FRwLock destructor. More... | |
| bool | verify () |
| Verifies lock. More... | |
| void | waitToRead () |
| Sets 'waits to read' state. More... | |
| void | doneReading () |
| Sets 'done reading' state. More... | |
| void | waitToWrite () |
| Sets 'wait to write' state. More... | |
| void | doneWriting () |
| Sets 'done writing' state. More... | |
FRwLock - read / write lock.
Supports recursive locks from the same thread. Recursive read lock on a granted write lock is permitted. Recursive write lock on a granted write lock is permitted. Recursive write lock on a granted read lock is rejected. (unless the initial lock grant was a write request) Support selection of write preference and read preference.
| FRwLock | ( | const char8 * | name = "FRwLock", |
| bool | writerPreference = false |
||
| ) |
FRwLock constructor.
| name | name of RwLock |
| writerPreference | if true RwLock will choose a writer preference (new read arrivals block until the write request was fulfilled) |
| bool verify | ( | ) |
Verifies lock.
| void waitToRead | ( | ) |
Sets 'waits to read' state.
| void doneReading | ( | ) |
Sets 'done reading' state.
| void waitToWrite | ( | ) |
Sets 'wait to write' state.
| void doneWriting | ( | ) |
Sets 'done writing' state.