GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> PBS / dev > pbs / linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

SEM.h File Reference

Simple semaphore, interface definition. More...


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.3 2011/03/24 23:05:44 apw 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 Fri Aug 5 18:30:34 2011 by  doxygen 1.5.8