GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > PBS / V2-10-15
Constituent: pbs     Tag: mv2304
#include "PBI/Inline.h"
#include "PBI/Attribute.h"
#include "PBS/Q_pubdefs.h"
Include dependency graph for Q.ih:
This graph shows which files directly or indirectly include this file:
Defines | |
#define | Q__EXP_PROTO INLINE_USR_EXP_PROTO |
Export Prototype spec. | |
#define | Q__LCL_PROTO INLINE_USR_LCL_PROTO |
Internal Prototype spec. | |
#define | Q__EXP_FNC INLINE_USR_EXP_FNC |
Export Function declaration. | |
#define | Q__LCL_FNC INLINE_USR_LCL_FNC |
Internal Function declaration. | |
Functions | |
Q__EXP_PROTO void | Q__append (Q_head *dst, Q_head *src) ATTR_UNUSED_OK |
Appends the src que members to the dst que. | |
Q__EXP_PROTO void | Q__destroy (Q_head *que) ATTR_UNUSED_OK |
Destroys the data structures associate with the que. | |
Q__EXP_PROTO int | Q__empty (Q_head *que) ATTR_UNUSED_OK |
Returns non zero if the que is empty. | |
Q__EXP_PROTO void | Q__init (Q_head *que) ATTR_UNUSED_OK |
Initializes a que (doubly linked list) to an empty que. | |
Q__EXP_PROTO Q_node * | Q__insert (Q_head *que, Q_node *node) ATTR_UNUSED_OK |
Adds a node to the tail of a previously initialized que. | |
Q__EXP_PROTO Q_node * | Q__jam (Q_head *que, Q_node *node) ATTR_UNUSED_OK |
Adds a node to the head of a previously initialized que. | |
Q__EXP_PROTO void | Q__prepend (Q_head *dst, Q_head *src) ATTR_UNUSED_OK |
Prepends the src que members to the que list. | |
Q__EXP_PROTO Q_node * | Q__remove (Q_head *que) ATTR_UNUSED_OK |
Removes the node from the tail of a previously initialized que. An empty que returns NULL as its node. | |
Q__EXP_PROTO Q_node * | Q__unlink (const Q_node *node) ATTR_UNUSED_OK |
Removes the specified node from the que. |
CVS $Id: Q.ih,v 1.3 2005/10/01 01:00:12 russell Exp $
This defines the inline versions of the Que routines. These allow the the user to build non-interlocked doubly linked lists. These routines parallel some of the functionality of the VxWorks llxxxx routines, but are portable to both VxWorks and host platforms.
See also the non-inlined versions of these routines which offer possible savings in code space and increased modularity at the expense of some performance. The QI routines provide the same functionality with the added feature of being interlocked, and, therefore, thread safe.
|
Appends the src que members to the dst que.
|
|
Destroys the data structures associate with the que.
|
|
Returns non zero if the que is empty.
|
|
Initializes a que (doubly linked list) to an empty que.
|
|
Adds a node to the tail of a previously initialized que.
|
|
Adds a node to the head of a previously initialized que.
|
|
Prepends the src que members to the que list.
|
|
Removes the node from the tail of a previously initialized que. An empty que returns NULL as its node.
|
|
Removes the specified node from the que.
|