RWMutexLock Struct Reference

#include <parallel.h>

List of all members.

Public Member Functions

 RWMutexLock (RWMutex &m, RWMutexLockType t)
 ~RWMutexLock ()
void UpgradeToWrite ()
void DowngradeToRead ()

Private Member Functions

 RWMutexLock (const RWMutexLock &)
RWMutexLockoperator= (const RWMutexLock &)

Private Attributes

RWMutexLockType type
RWMutexmutex

Detailed Description

Definition at line 266 of file parallel.h.


Constructor & Destructor Documentation

RWMutexLock::RWMutexLock ( RWMutex m,
RWMutexLockType  t 
)

Definition at line 154 of file parallel.cpp.

References RWMutex::mutex, and READ.

RWMutexLock::~RWMutexLock (  ) 

Definition at line 162 of file parallel.cpp.

References RWMutex::mutex, mutex, and Severe().

RWMutexLock::RWMutexLock ( const RWMutexLock  )  [private]

Member Function Documentation

void RWMutexLock::DowngradeToRead (  ) 

Definition at line 182 of file parallel.cpp.

References Assert, RWMutex::mutex, mutex, READ, Severe(), type, and WRITE.

Referenced by Voxel::Intersect(), and Voxel::IntersectP().

RWMutexLock& RWMutexLock::operator= ( const RWMutexLock  )  [private]
void RWMutexLock::UpgradeToWrite (  ) 

Definition at line 170 of file parallel.cpp.

References Assert, RWMutex::mutex, mutex, READ, Severe(), type, and WRITE.

Referenced by Voxel::Intersect(), Voxel::IntersectP(), and SurfacePointTask::Run().


Member Data Documentation

Definition at line 273 of file parallel.h.

Referenced by DowngradeToRead(), UpgradeToWrite(), and ~RWMutexLock().

Definition at line 272 of file parallel.h.

Referenced by DowngradeToRead(), and UpgradeToWrite().


The documentation for this struct was generated from the following files:
Generated on Sat Aug 28 20:00:15 2010 for pbrt by  doxygen 1.6.3