#include <parallel.h>
Public Member Functions | |
RWMutexLock (RWMutex &m, RWMutexLockType t) | |
~RWMutexLock () | |
void | UpgradeToWrite () |
void | DowngradeToRead () |
Private Member Functions | |
RWMutexLock (const RWMutexLock &) | |
RWMutexLock & | operator= (const RWMutexLock &) |
Private Attributes | |
RWMutexLockType | type |
RWMutex & | mutex |
Definition at line 266 of file parallel.h.
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] |
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().
RWMutex& RWMutexLock::mutex [private] |
Definition at line 273 of file parallel.h.
Referenced by DowngradeToRead(), UpgradeToWrite(), and ~RWMutexLock().
RWMutexLockType RWMutexLock::type [private] |
Definition at line 272 of file parallel.h.
Referenced by DowngradeToRead(), and UpgradeToWrite().