GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > PBS / V2-10-10

Constituent: pbs     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

SEM.h File Reference

Simple semaphore, interface definition. More...

This graph shows which files directly or indirectly include this file:


Functions

SEM SEM_create (unsigned int options)
 Creates a semaphore.
unsigned int SEM_takeW (SEM semaphore)
 Takes the semaphore. This call will block until the semaphore can be taken.
unsigned int SEM_give (SEM semaphore)
 Gives the semaphore.
unsigned int SEM_destroy (SEM semaphore)
 Destroys the semaphore.

Detailed Description

Simple semaphore, interface definition.

Author:
JJRussell - russell@slac.stanford.edu
    CVS $Id: SEM.h,v 1.2 2004/12/07 16:13:05 russell Exp $

Function Documentation

SEM SEM_create unsigned int  options  ) 
 

Creates a semaphore.

Return values:
NON-NULL A pointer to the created semaphore
NULL Error in the creation
Parameters:
options A bit mask of options formed from the enumeration SEM_OPTIONS_M

unsigned int SEM_destroy SEM  semaphore  ) 
 

Destroys the semaphore.

Parameters:
semaphore The semaphore to destroy

unsigned int SEM_give SEM  semaphore  ) 
 

Gives the semaphore.

Parameters:
semaphore The semaphore to give

unsigned int SEM_takeW SEM  semaphore  ) 
 

Takes the semaphore. This call will block until the semaphore can be taken.

Parameters:
semaphore The semaphore to take


Generated on Mon Nov 20 05:47:50 2006 by  doxygen 1.4.4