SCIRun
5.0
|
#include <CrowdMonitor.h>
Public Member Functions | |
CrowdMonitor (const char *name) | |
~CrowdMonitor () | |
Destroy the CrowdMonitor. More... | |
void | readLock () |
void | readUnlock () |
void | writeLock () |
void | writeUnlock () |
CrowdMonitor | ( | const char * | name | ) |
Create and initialize the CrowdMonitor. name should be a static which describes the primitive for debugging purposes.
~CrowdMonitor | ( | ) |
Destroy the CrowdMonitor.
void readLock | ( | ) |
Acquire the read-only lock associated with this CrowdMonitor. Multiple threads may hold the read-only lock simultaneously.
void readUnlock | ( | ) |
Release the read-only lock obtained from readLock. Undefined behavior may result when readUnlock is called and a readLock is not held by the calling Thread.
void writeLock | ( | ) |
Acquire the write lock associated with this CrowdMonitor. Only one thread may hold the write lock, and during the time that this lock is not held, no threads may hold the read-only lock.
void writeUnlock | ( | ) |
Release the write-only lock obtained from writeLock. Undefined behavior may result when writeUnlock is called and a writeLock is not held by the calling Thread.