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

Constituent: pbs     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

SEM.h.px-xxx-xxx File Reference

Simple semaphore, POSIX implementation dependent definitions. More...

#include <semaphore.h>

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

Include dependency graph

Typedefs

typedef sem_t * SEM
 Typedef for a semaphore.

typedef enum _SEM_OPTIONS_M SEM_OPTIONS_M
 Typedef for enum _SEM_OPTIONS_M.


Enumerations

enum  _SEM_OPTIONS_M {
  SEM_OPTIONS_M_PEND_FIFO = 0,
  SEM_OPTIONS_M_PEND_PRIORITY = 1
}
 Enumerations of the bit mask options used to form the options parameter of the SEM_init routine. More...


Detailed Description

Simple semaphore, POSIX implementation dependent definitions.

Author:
JJRussell - russell@slac.stanford.edu

    CVS $Id: SEM.h.px-xxx-xxx,v 1.2 2004/12/07 16:13:07 russell Exp $

Typedef Documentation

SEM_OPTIONS_M
 

Typedef for enum _SEM_OPTIONS_M.

Warning:
Almost no POSIX implementations support any kind of deterministic behaviour when multiple threads are trying to competing for the same semaphore. When it does, it is almost always by priority. It is therefore not portable to architect a program which depends on the pending strategy. It may be used as an optimization strategy on those platforms that support it.


Enumeration Type Documentation

enum _SEM_OPTIONS_M
 

Enumerations of the bit mask options used to form the options parameter of the SEM_init routine.

Enumeration values:
SEM_OPTIONS_M_PEND_FIFO  Pend in FIFO order
SEM_OPTIONS_M_PEND_PRIORITY  Pend in PRIORITY order


Generated on Fri Sep 30 22:50:32 2005 by doxygen 1.3.3