GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> PBS / dev > pbs / linux-gcc
#include <PBI/Inline.h>
#include <PBI/Attribute.h>
#include <PBS/Q.h>
#include <PBS/Q.ih>
#include <PBS/RW.h>
#include <PBS/RW.ih>
#include <PBS/QI.h>
#include <PBS/TOC_comdefs.h>
Functions | |
QI__EXP_PROTO int | QI__disable (QI_head *e) _OK |
Disables the dequeing of nodes from this que. | |
QI__EXP_PROTO int | QI__enable (QI_head *que) _OK |
Enable the dequeing of nodes from this que. | |
QI__EXP_PROTO int | QI__enabled (const QI_head *que) _OK |
Returns the state of the disabled flag for this que. | |
QI__EXP_PROTO QI_node * | QI__insert (QI_head *que, QI_node *node) _OK |
Adds a node to the tail of a previously initialized que. | |
QI__EXP_PROTO QI_node * | QI__jam (QI_head *que, QI_node *node) _OK |
Adds a node to the head of a previously initialized que. | |
QI__EXP_PROTO QI_node * | QI__remove (QI_head *que) _OK |
Removes the node from the tail of a previously initialized que. An empty que returns NULL as its node. | |
QI__EXP_PROTO QI_node * | QI__removeW (QI_head *que) _OK |
Removes the node from the tail of a previously initialized linked list. If the list is empty, the thread of code is blocked until a node becomes available or the timeout expires. | |
QI__EXP_PROTO QI_node * | QI__removeW_toc (QI_head *que, const TOC *toc) _OK |
Removes the node from the head of a previously initialized que. If the que is empty, the thread of code is blocked until a node becomes available or the timeout condition is satisfied. | |
QI__EXP_FNC void | QI__append (QI_head *dst, QI_head *src) |
Appends the src que members to the dst que. | |
QI__EXP_FNC void | QI__prepend (QI_head *dst, QI_head *src) |
Prepends the src que members to the que list. |
CVS $Id: QI.ih,v 1.4 2011/03/24 23:05:43 apw Exp $
Appends the src que members to the dst que.
dst | A previously initialized que acting as the destination | |
src | A previously initialized que acting as the source |
References _QI_head::head, Q__append(), _QI_head::rw, RW__lock2(), and RW__unlock2().
QI__EXP_FNC int QI__disable | ( | QI_head * | que | ) |
Disables the dequeing of nodes from this que.
que | A previously initialized que |
0 | Que was previously disabled | |
!=0 | Que was previously enabled |
References _QI_head::rw, and RW__disable().
QI__EXP_FNC int QI__enable | ( | QI_head * | que | ) |
Enable the dequeing of nodes from this que.
que | A previously initialized que |
0 | Que was previously disabled | |
!=0 | Que was previously enabled |
References _QI_head::rw, and RW__enable().
QI__EXP_FNC int QI__enabled | ( | const QI_head * | que | ) |
Returns the state of the disabled flag for this que.
que | A previously initialized que |
0 | Que is currently disabled | |
!=0 | Que is currently enabled |
References _QI_head::rw, and RW__enabled().
Adds a node to the tail of a previously initialized que.
que | A previously initialized que. | |
node | The node to add at the tail of the list. |
References _QI_head::head, Q__insert(), _QI_head::rw, RW__lock(), RW__unlock(), and RW__wake().
Adds a node to the head of a previously initialized que.
que | A previously initialized que. | |
node | The node to add. |
References _QI_head::head, Q__jam(), _QI_head::rw, RW__lock(), RW__unlock(), and RW__wake().
Prepends the src que members to the que list.
dst | A previously initialized que acting as the destination | |
src | A previously initialized que acting as the source |
References _QI_head::head, Q__prepend(), _QI_head::rw, RW__lock2(), and RW__unlock2().
Removes the node from the tail of a previously initialized que. An empty que returns NULL as its node.
que | A previously initialized que. |
References _QI_head::head, Q__remove(), _QI_head::rw, RW__enabled(), RW__lock(), and RW__unlock().
Referenced by QI__removeW(), and QI__removeW_toc().
Removes the node from the tail of a previously initialized linked list. If the list is empty, the thread of code is blocked until a node becomes available or the timeout expires.
que | A previously initialized que |
References Q__remove(), QI__remove(), _QI_head::rw, and RW_getW().
Removes the node from the head of a previously initialized que. If the que is empty, the thread of code is blocked until a node becomes available or the timeout condition is satisfied.
que | A previously initialized que. | |
toc | The timeout control structure. This may be one of the two special values TOC_NOWAIT or TOC_FOREVER. |
References Q_remove(), QI__remove(), _QI_head::rw, RW_getW_toc(), and TOC_IS_NOWAIT.