GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> PBS / dev > pbs / rhel6-64


Interface   Data Structures   File List   Data Fields   Globals  

MTX.h File Reference

Simple mutex, interface definition. More...


Functions

MTX MTX_create (unsigned int options)
 Creates a mutex.
unsigned int MTX_lock (MTX mutex)
 Locks the mutex. This call may block until the mutex can be locked.
unsigned int MTX_unlock (MTX mutex)
 Unlocks the mutex.
unsigned int MTX_destroy (MTX mutex)
 Destroys the mutex.


Detailed Description

Simple mutex, interface definition.

Author:
JJRussell - russell@slac.stanford.edu

    CVS $Id: MTX.h,v 1.3 2011/03/24 23:05:42 apw Exp $

Function Documentation

MTX MTX_create ( unsigned int  options  ) 

Creates a mutex.

Return values:
NON-NULL A pointer to the created mutex
NULL Error in the creation
Parameters:
options A bit mask of options formed from the enumeration MTX_OPTIONS_M

unsigned int MTX_destroy ( MTX  mutex  ) 

Destroys the mutex.

Parameters:
mutex The mutex to destroy

unsigned int MTX_lock ( MTX  mutex  ) 

Locks the mutex. This call may block until the mutex can be locked.

Parameters:
mutex The mutex to lock

unsigned int MTX_unlock ( MTX  mutex  ) 

Unlocks the mutex.

Parameters:
mutex The mutex to lock


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