#include <PhxLocks.h>
Public Member Functions | |
| ReadWriteLock () | |
| Initializes a new read-write lock that is initially unlocked. | |
| ~ReadWriteLock () | |
| Destroys this lock. | |
| void | readLock (void) const |
| Locks this reader/writer lock for reading. | |
| void | writeLock (void) const |
| Locks this reader/writer lock for writing. | |
| void | unlock (void) const |
| Unlocks the reader/writer lock. | |
A read/write lock is a special kind of lock that allows multiple readers to have access to a piece of data in parallel, but only allows a single writer to access the data at a time when no readers have the lock.
|
|
Initializes a new read-write lock that is initially unlocked.
|
|
|
Destroys this lock.
|
|
|
Locks this reader/writer lock for reading.
|
|
|
Unlocks the reader/writer lock.
|
|
|
Locks this reader/writer lock for writing.
|
1.4.2