Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::Semaphore Class Reference

Class Semaphore. More...

#include <vcf/FoundationKit/Semaphore.h>

Inheritance diagram for VCF::Semaphore:

VCF::Object VCF::SynchObject VCF::Interface List of all members.

Public Member Functions

 Semaphore (int32 initialCount=1, int32 maxCount=1)
virtual ~Semaphore ()
virtual bool lock ()
 Attempts tp lock the SynchObject and will block indefinitely till a lock is achieved.
virtual bool lock (uint32 timeoutInMilliseconds)
 Attempts tp lock the SynchObject and will block for timeoutInMilliseconds till a lock is achieved.
virtual bool unlock ()
SemaphorePeergetPeer ()

Protected Attributes

SemaphorePeerpeer_

Detailed Description

Class Semaphore.

Author:
Tiziano Franzoi, Nov 15, 2001


Constructor & Destructor Documentation

VCF::Semaphore::Semaphore int32  initialCount = 1,
int32  maxCount = 1
 

virtual VCF::Semaphore::~Semaphore  )  [virtual]
 


Member Function Documentation

SemaphorePeer* VCF::Semaphore::getPeer  )  [inline]
 

virtual bool VCF::Semaphore::lock uint32  timeoutInMilliseconds  )  [virtual]
 

Attempts tp lock the SynchObject and will block for timeoutInMilliseconds till a lock is achieved.

Implements VCF::SynchObject.

virtual bool VCF::Semaphore::lock  )  [virtual]
 

Attempts tp lock the SynchObject and will block indefinitely till a lock is achieved.

Implements VCF::SynchObject.

virtual bool VCF::Semaphore::unlock  )  [virtual]
 

Implements VCF::SynchObject.


Member Data Documentation

SemaphorePeer* VCF::Semaphore::peer_ [protected]
 


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information