|
Nebula
|
#include <posixreadwritelock.h>
Public Member Functions | |
| PosixReadWriteLock () | |
| Constructor. | |
| ~PosixReadWriteLock () | |
| Destructor. | |
| void | LockRead () |
| Lock for read. | |
| void | LockWrite () |
| Lock for write. | |
| void | UnlockRead () |
| Release read. | |
| void | UnlockWrite () |
| Release write. | |
Private Attributes | |
| int32_t | readCounter = 0 |
| int32_t | writeCounter = 0 |
| pthread_rwlock_t | lock |
| Threading::ThreadId | lockingThread = 0 |
| Posix::PosixReadWriteLock::PosixReadWriteLock | ( | ) |
Constructor.
| Posix::PosixReadWriteLock::~PosixReadWriteLock | ( | ) |
Destructor.
| void Posix::PosixReadWriteLock::LockRead | ( | ) |
Lock for read.
| void Posix::PosixReadWriteLock::LockWrite | ( | ) |
Lock for write.
| void Posix::PosixReadWriteLock::UnlockRead | ( | ) |
Release read.
| void Posix::PosixReadWriteLock::UnlockWrite | ( | ) |
Release write.
|
private |
|
private |
|
private |
|
private |