Logo Search packages:      
Sourcecode: pwlib version File versions

PCriticalSection Class Reference

#include <critsec.h>

Inheritance diagram for PCriticalSection:

PObject

List of all members.


Detailed Description

This class implements critical section mutexes using the most efficient mechanism available on the host platform. For Windows, CriticalSection is used. On other platforms, the sem_wait call is used.

Definition at line 76 of file critsec.h.


Comparison functions

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  Comparison { LessThan = -1, EqualTo = 0, GreaterThan = 1 }

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 PrintOn (ostream &strm) const
virtual void ReadFrom (istream &strm)
ostream & operator<< (ostream &strm, const PObject &obj)
istream & operator>> (istream &strm, PObject &obj)

Public Member Functions

Miscellaneous functions
virtual PObjectClone () const
virtual PINDEX HashFunction () const
Operations
PINLINE void Enter ()
PINLINE void Leave ()
Construction
PINLINE PCriticalSection ()
PINLINE ~PCriticalSection ()

Private Member Functions

PCriticalSectionoperator= (const PCriticalSection &)
 PCLASSINFO (PCriticalSection, PObject)

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

Generated by  Doxygen 1.6.0   Back to index