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

PIntCondMutex Class Reference

#include <syncthrd.h>

Inheritance diagram for PIntCondMutex:

PCondMutex PTimedMutex PObject

List of all members.

Detailed Description

This is a PCondMutex for which the conditional is the value of an integer.

Definition at line 181 of file syncthrd.h.

Comparison functions

enum  Comparison { LessThan = -1, EqualTo = 0, GreaterThan = 1 }
virtual Comparison Compare (const PObject &obj) const
virtual Comparison CompareObjectMemoryDirect (const PObject &obj) const
bool operator!= (const PObject &obj) const
bool operator< (const PObject &obj) const
bool operator<= (const PObject &obj) const
bool operator== (const PObject &obj) const
bool operator> (const PObject &obj) const
bool operator>= (const PObject &obj) const


enum  Operation {
  LT, LE, EQ, GE,
 defines possible operators on current value and target value More...
 PIntCondMutex (int value=0, int target=0, Operation operation=LE)

Run Time Type functions

virtual const char * GetClass (unsigned=0) const
virtual BOOL InternalIsDescendant (const char *clsName) const
BOOL IsClass (const char *cls) const
static const char * Class ()

I/O functions

virtual void ReadFrom (istream &strm)
ostream & operator<< (ostream &strm, const PObject &obj)
istream & operator>> (istream &strm, PObject &obj)

Public Member Functions

virtual void OnWait ()
virtual void Signal ()
virtual void WaitCondition ()
Miscellaneous functions
virtual PObjectClone () const
virtual PINDEX HashFunction () const
Condition access functions
virtual BOOL Condition ()
 operator int () const
PIntCondMutexoperator++ ()
PIntCondMutexoperator+= (int inc)
PIntCondMutexoperator-- ()
PIntCondMutexoperator-= (int dec)
PIntCondMutexoperator= (int newval)
Overrides from class PObject
void PrintOn (ostream &strm) const
virtual void Wait ()=0

Protected Attributes

Operation operation
PSyncPoint syncPoint
int target
int value

Private Member Functions

 PCLASSINFO (PIntCondMutex, PCondMutex)

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

Generated by  Doxygen 1.6.0   Back to index