class PWriteWaitAndSignal |
This class starts a write operation for the PReadWriteMutex on construction and automatically ends the write operation on destruction.
![]() | PWriteWaitAndSignal ( const PReadWriteMutex & rw, BOOL start = TRUE ) Create the PWriteWaitAndSignal wait instance. |
![]() | ~PWriteWaitAndSignal () End write operation on the PReadWriteMutex. |
This class starts a write operation for the PReadWriteMutex on construction and automatically ends the write operation on destruction.This is very usefull for constructs such as:
void func() { PWriteWaitAndSignal mutexWait(myMutex); if (condition) return; do_something(); if (other_condition) return; do_something_else(); }
Alphabetic index HTML hierarchy of classes or Java