Poco::RWLock Class Reference
#include <RWLock.h>
List of all members.
Detailed Description
A reader writer lock allows multiple concurrent readers or one exclusive writer.
Definition at line 57 of file RWLock.h.
Member Typedef Documentation
Constructor & Destructor Documentation
Poco::RWLock::~RWLock |
( |
|
) |
|
Creates the Reader/Writer lock.
Definition at line 52 of file RWLock.cpp.
Poco::RWLock::RWLock |
( |
const RWLock & |
|
) |
[private] |
Releases the read or write lock.
Member Function Documentation
RWLock& Poco::RWLock::operator= |
( |
const RWLock & |
|
) |
[private] |
void Poco::RWLock::readLock |
( |
|
) |
[inline] |
Destroys the Reader/Writer lock.
Definition at line 117 of file RWLock.h.
bool Poco::RWLock::tryReadLock |
( |
|
) |
[inline] |
Acquires a read lock. If another thread currently holds a write lock, waits until the write lock is released.
Definition at line 123 of file RWLock.h.
bool Poco::RWLock::tryWriteLock |
( |
|
) |
[inline] |
Acquires a write lock. If one or more other threads currently hold locks, waits until all locks are released. The results are undefined if the same thread already holds a read or write lock
Definition at line 135 of file RWLock.h.
void Poco::RWLock::unlock |
( |
|
) |
[inline] |
Tries to acquire a write lock. Immediately returns true if successful, or false if one or more other threads currently hold locks. The result is undefined if the same thread already holds a read or write lock.
Definition at line 141 of file RWLock.h.
void Poco::RWLock::writeLock |
( |
|
) |
[inline] |
Tries to acquire a read lock. Immediately returns true if successful, or false if another thread currently holds a write lock.
Definition at line 129 of file RWLock.h.
The documentation for this class was generated from the following files: