SCIRun  5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
CrowdMonitor Class Reference

#include <CrowdMonitor.h>

Public Member Functions

 CrowdMonitor (const char *name)
 
 ~CrowdMonitor ()
 Destroy the CrowdMonitor. More...
 
void readLock ()
 
void readUnlock ()
 
void writeLock ()
 
void writeUnlock ()
 

Constructor & Destructor Documentation

CrowdMonitor ( const char *  name)

Create and initialize the CrowdMonitor. name should be a static which describes the primitive for debugging purposes.

Destroy the CrowdMonitor.

Member Function Documentation

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.


The documentation for this class was generated from the following files: