GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> PBS / V2-12-1 > pbs / rhel5-32


Interface   Data Structures   File List   Data Fields   Globals  

SEM.ih.px-xxx-xxx File Reference

Simple semaphore, POSIX platform dependent inline implementation. More...

#include <PBS/MBA.h>
#include <PBS/SEM.h>
#include <semaphore.h>

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 acquired.
unsigned int SEM__give (SEM semaphore)
 Gives the semaphore.
unsigned int SEM__destroy (SEM semaphore)
 Destroys the semaphore.


Detailed Description

Simple semaphore, POSIX platform dependent inline implementation.

Author:
JJRussell - russell@slac.stanford.edu

    CVS $Id: SEM.ih.px-xxx-xxx,v 1.4 2011/03/24 23:05:45 apw Exp $

This implementation uses the REAL-TIME extensions


Function Documentation

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

References MBA_alloc(), and MBA_free().

unsigned int SEM__destroy ( SEM  semaphore  ) 

Destroys the semaphore.

Parameters:
semaphore The semaphore to destroy

References MBA_free().

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 acquired.

Parameters:
semaphore The semamphore to take


Generated on Sat May 21 06:44:09 2011 by  doxygen 1.5.8