Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

PReadWaitAndSignal Class Reference

#include <syncthrd.h>

List of all members.

Detailed Description

This class starts a read operation for the PReadWriteMutex on construction and automatically ends the read operation on destruction.

This is very usefull for constructs such as: {verbatim} void func() { PReadWaitAndSignal mutexWait(myMutex); if (condition) return; do_something(); if (other_condition) return; do_something_else(); } {verbatim}

Definition at line 391 of file syncthrd.h.

Public Member Functions

 PReadWaitAndSignal (const PReadWriteMutex &rw, BOOL start=TRUE)
 ~PReadWaitAndSignal ()

Protected Attributes


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

Generated by  Doxygen 1.6.0   Back to index