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

Constituent: pbs     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

SEM.ih File Reference

Simple semaphore, inline interface and implementation. More...

#include "PBI/Inline.h"
#include "PBI/Attribute.h"
#include "PBS/SEM.h"

Include dependency graph for SEM.ih:


Defines

#define SEM__EXP_PROTO   INLINE_USR_EXP_PROTO
 Export Prototype spec.
#define SEM__LCL_PROTO   INLINE_USR_LCL_PROTO
 Internal Prototype spec.
#define SEM__EXP_FNC   INLINE_USR_EXP_FNC
 Export Function declaration.
#define SEM__LCL_FNC   INLINE_USR_LCL_FNC
 Internal Function declaration.

Functions

SEM__EXP_PROTO SEM SEM__create (unsigned int options) ATTR_UNUSED_OK
 Creates a semaphore.
SEM__EXP_PROTO unsigned int SEM__takeW (SEM semaphore) ATTR_UNUSED_OK
 Takes the semaphore. This call will block until the semaphore can be acquired.
SEM__EXP_PROTO unsigned int SEM__give (SEM give) ATTR_UNUSED_OK
 Gives the semaphore.
SEM__EXP_PROTO unsigned int SEM__destroy (SEM semaphore) ATTR_UNUSED_OK
 Destroys the semaphore.

Detailed Description

Simple semaphore, inline interface and implementation.

Author:
JJRussell - russell@slac.stanford.edu
    CVS $Id: SEM.ih,v 1.3 2005/10/01 01:00:12 russell Exp $

Function Documentation

SEM__EXP_PROTO SEM SEM__create unsigned int  options  ) 
 

Creates a semaphore.

Returns:
Status
Parameters:
options A bit mask of options formed from the enumeration SEM_OPTIONS_M

SEM__EXP_PROTO unsigned int SEM__destroy SEM  semaphore  ) 
 

Destroys the semaphore.

Parameters:
semaphore The semaphore to destroy

SEM__EXP_PROTO unsigned int SEM__give SEM  semaphore  ) 
 

Gives the semaphore.

Parameters:
semaphore The semaphore to give

SEM__EXP_PROTO unsigned int SEM__takeW SEM  semaphore  ) 
 

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

Parameters:
semaphore The semamphore to take


Generated on Fri Feb 9 02:21:29 2007 by  doxygen 1.4.4