GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> PBS / dev > pbs / linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

MTX.h.px-xxx-xxx File Reference

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

#include <pthread.h>

Typedefs

typedef pthread_mutex_t * MTX
 Typedef for a mutex.
typedef enum _MTX_OPTIONS_M MTX_OPTIONS_M
 Typedef for enum _MTX_OPTIONS_M.

Enumerations

enum  _MTX_OPTIONS_M {
  MTX_OPTIONS_M_PEND_FIFO = 0,
  MTX_OPTIONS_M_PEND_PRIORITY = 1
}
 Enumerations of the bit mask options used to form the options parameter of the MTX_init routine. More...


Detailed Description

Simple mutex, POSIX implementation dependent definitions.

Author:
JJRussell - russell@slac.stanford.edu

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

Typedef Documentation

Typedef for enum _MTX_OPTIONS_M.

Warning:
Almost no POSIX implementations support any kind of deterministic behaviour when multiple threads are trying to lock the same mutex. 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

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

Enumerator:
MTX_OPTIONS_M_PEND_FIFO  Pend in FIFO order
MTX_OPTIONS_M_PEND_PRIORITY  Pend in PRIORITY order


Generated on Fri Aug 5 18:30:33 2011 by  doxygen 1.5.8