GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > PBS / V2-10-10
Constituent: pbs     Tag: rad750
#include "PBI/Inline.h"
#include "PBI/Attribute.h"
Include dependency graph for TBD.ih:
This graph shows which files directly or indirectly include this file:
Functions | |
TBD__EXP_PROTO void ** | TBD__locate (void) ATTR_UNUSED_OK |
Locates the block of task data. | |
TBD__EXP_PROTO void ** | TBD__glocate (void) ATTR_UNUSED_OK |
Locates the block of task data. | |
TBD__EXP_PROTO void * | TBD__get (void **tbd, int index) ATTR_UNUSED_OK |
Returns the value task global data at the specified index. | |
TBD__EXP_PROTO void | TBD__put (void **tbd, int index, void *value) ATTR_UNUSED_OK |
Puts the data value into the task global data at the specified index. |
CVS $Id: TBD.ih,v 1.4 2004/12/07 16:13:05 russell Exp $
|
Returns the value task global data at the specified index.
|
|
Locates the block of task data.
See TBD__locate() for a usage example. |
|
Locates the block of task data.
The implementation of this function is very efficient of the VXWORKS platform, requiring approximately 2 instructions. It is highly recommended that the inline form of this function be used.
------- void **tbd = TBD__locate (); / * Check for NULL * / if (tbd != NULL) { int org_1 = TBD__get (tbd, DATA_IDX_1); int org_2 = TBD__get (tbd, DATA_IDX_2]; TBD__put (tbd, DATA_IDX_1, 0xdeadbeef); TBD__put (tbd, DATA_IDX_2, 0xabadcafe); } |
|
Puts the data value into the task global data at the specified index.
|