GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> PBS / V2-12-1 > pbs / rhel6-64
#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. |
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
SEM SEM__create | ( | unsigned int | options | ) |
Creates a semaphore.
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 | ) |
unsigned int SEM__give | ( | SEM | semaphore | ) |
Gives the semaphore.
semaphore | The semaphore to give |
unsigned int SEM__takeW | ( | SEM | semaphore | ) |
Takes the semaphore. This call will block until the semaphore can be acquired.
semaphore | The semamphore to take |