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

Constituent: pbs     Tag: linux-gcc


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>

Include dependency graph for SEM.ih.px-xxx-xxx:


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.3 2004/12/07 16:13:08 russell 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

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

Parameters:
semaphore The semamphore to take


Generated on Wed Dec 20 05:07:24 2006 by  doxygen 1.4.4