#include <ReadersWritersLock.hpp>
Public Member Functions | |
| ReadersWritersLock () | |
| void | lockRead () |
| void | lockWrite () |
| void | unlockWrite () |
| void | unlockRead () |
| void | yieldWrite () |
| void | yieldRead () |
Private Member Functions | |
| void | _enqueue (wait_queue_entry &entry) |
| void | _wakeOthers () |
Private Attributes | |
| Mutex | _mutex |
| wait_queue_entry * | _head |
| wait_queue_entry * | _tail |
| int | _readers |
| int | _writers |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.4