Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

PsnSprocSemaphore Class Reference

semaphore when the SGI Irix Sproc thread model is used More...

#include <PsnSprocSemaphore.h>

Inheritance diagram for PsnSprocSemaphore:

Inheritance graph
[legend]
Collaboration diagram for PsnSprocSemaphore:

Collaboration graph
[legend]
List of all members.

Public Methods

 PsnSprocSemaphore (const int valeurInitiale)
 Constructor.

virtual ~PsnSprocSemaphore ()
 Destructor.

virtual int V ()
 V Increments the semphore value and signals the change to blocked threads.

virtual int P ()
 P decrement the sempaphore value and block the calling thread if this value is negative.


Private Attributes

sem_t _semaphore

Detailed Description

semaphore when the SGI Irix Sproc thread model is used

Author:
D. Margery
Version:
1.1

Definition at line 28 of file PsnSprocSemaphore.h.


Constructor & Destructor Documentation

PsnSprocSemaphore::PsnSprocSemaphore const int    valeurInitiale
 

Constructor.

Parameters:
int initial value of the semaphore

virtual PsnSprocSemaphore::~PsnSprocSemaphore   [virtual]
 

Destructor.


Member Function Documentation

virtual int PsnSprocSemaphore::P   [virtual]
 

P decrement the sempaphore value and block the calling thread if this value is negative.

Returns:
: old value of the semaphore

Implements PsnSemaphore.

virtual int PsnSprocSemaphore::V   [virtual]
 

V Increments the semphore value and signals the change to blocked threads.

Returns:
: new value of the semaphore

Implements PsnSemaphore.


Member Data Documentation

sem_t PsnSprocSemaphore::_semaphore [private]
 

Definition at line 57 of file PsnSprocSemaphore.h.


The documentation for this class was generated from the following file:
logo OpenMask

Documentation generated on Mon Nov 25 15:26:30 2002

Generated with doxygen 1.2.12 by Dimitri van Heesch ,   1997-2001