Public Member Functions | |
| bool | readLock () |
| Lock for reading, this only block writes, not other reads. | |
| bool | tryReadLock () |
| Try the lock for reading, this only block writes. | |
| bool | writeLock () |
| Lock for writing, this blocks reads and all writes. | |
| bool | tryWriteLock () |
| Try the lock for writing, this blocks reads and all writes. | |
| bool | unlock () |
Protected Attributes | |
| pthread_rwlock_t | _lock |
| my pthread rwlock that implements this | |
A read/write lock that allows multiple readers to gain access to the lock, but only one writer at a time.
The current implementation may not be recursive as I can't figure out how to make it so or if it is so by default.
| ©2019 The Foundry Visionmongers, Ltd. All Rights Reserved. |