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  

RW_tmr.ih.px-xxx-xxx File Reference

Defines the POSIX platform dependent Resource Wait timer (RW_tmr) routines. More...

#include <pthread.h>
#include <errno.h>

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


Defines

#define RW_TMR_PINIT(rw_tmr)
 Initializes the platform specific piece of the RW_tmr structure.

Functions

RW__EXP_FNC RW_state RW__tmr_lock (RW_tmr *tmr, RW_state state)
 Locks the resource.
RW__EXP_FNC RW_state RW__tmr_wait (RW_tmr *tmr, RW_state state)
 Waits until the timer expires or another task calls RW__tmr_wake indicating that another attempt be made to allocate the resource.
RW__EXP_FNC RW_state RW__tmr_unlock (RW_tmr *tmr, RW_state state)
 Unlocks the resource.
RW__EXP_FNC RW_state RW__tmr_destroy (RW_tmr *tmr, RW_state state)
 Destroys the tmr RW handle. This should be called before exiting the routine doing the allocation, since it will cleanup any outstanding timers among other things.

Detailed Description

Defines the POSIX platform dependent Resource Wait timer (RW_tmr) routines.

Author:
JJRussell - russell@slac.stanford.edu
   CVS $Id: RW_tmr.ih.px-xxx-xxx,v 1.3 2004/05/12 16:19:04 russell Exp $


Define Documentation

#define RW_TMR_PINIT rw_tmr   ) 
 

Initializes the platform specific piece of the RW_tmr structure.

Parameters:
rw_tmr Pointer to the RW_tmr structure to initialize


Function Documentation

RW_state RW__tmr_destroy RW_tmr tmr,
RW_state  state
 

Destroys the tmr RW handle. This should be called before exiting the routine doing the allocation, since it will cleanup any outstanding timers among other things.

Parameters:
tmr The RW timer handle
state The current state
Returns:
The updated state.
Warning:
Failure to call this routine if a timer is still on the WUT que is fatal.

RW_state RW__tmr_lock RW_tmr tmr,
RW_state  state
 

Locks the resource.

Parameters:
tmr The RW timer handle
state The current RW state
Returns:
The update RW state.

RW_state RW__tmr_unlock RW_tmr tmr,
RW_state  state
 

Unlocks the resource.

Parameters:
tmr The RW timer handle
state The current RW state
Returns:
The update RW state.

RW_state RW__tmr_wait RW_tmr tmr,
RW_state  state
 

Waits until the timer expires or another task calls RW__tmr_wake indicating that another attempt be made to allocate the resource.

Parameters:
tmr A previously initialized timer resource handle
state The current RW state
Returns:
The updated RW state.


Generated on Wed Dec 20 05:06:56 2006 by  doxygen 1.4.4