GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> PBS / dev > pbs / rhel5-32
#include <PBI/Inline.h>
#include <PBI/Attribute.h>
#include <PBS/L.h>
#include <PBS/L.ih>
#include <PBS/RW.h>
#include <PBS/RW.ih>
#include <PBS/LI.h>
#include <PBS/TOC_comdefs.h>
Defines | |
#define | LI__EXP_PROTO INLINE_USR_EXP_PROTO |
Export Prototype spec. | |
#define | LI__LCL_PROTO INLINE_USR_LCL_PROTO |
Internal Prototype spec. | |
#define | LI__EXP_FNC INLINE_USR_EXP_FNC |
Export Function declaration. | |
#define | LI__LCL_FNC INLINE_USR_LCL_FNC |
Internal Function declaration. | |
#define | _OK ATTR_UNUSED_OK |
Abbreviation for ATTR_UNUSED_OK, undefined in this file. | |
Functions | |
LI__EXP_PROTO void | LI__append (LI_head *dst, LI_head *src) _OK |
Appends the src list members to the dst list. | |
LI__EXP_PROTO int | LI__disable (LI_head *list) _OK |
Disables the dequeing of nodes from this list. | |
LI__EXP_PROTO int | LI__enable (LI_head *list) _OK |
Enable the dequeing of nodes from this list. | |
LI__EXP_PROTO int | LI__enabled (const LI_head *list) _OK |
Returns the state of the enabled flag for this list. | |
LI__EXP_PROTO LI_node * | LI__insert (LI_head *list, LI_node *node) _OK |
Adds a node to the tail of a previously initialized list. | |
LI__EXP_PROTO LI_node * | LI__jam (LI_head *list, LI_node *node) _OK |
Adds a node to the head of a previously initialized list. | |
LI__EXP_PROTO void | LI__prepend (LI_head *dst, LI_head *src) _OK |
Prepends the src list members to the dst list. | |
LI__EXP_PROTO LI_node * | LI__remove (LI_head *list) _OK |
Removes the node from the tail of a previously initialized list. An empty list returns NULL as its node. | |
LI__EXP_PROTO LI_node * | LI__removeW (LI_head *list) _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. | |
LI__EXP_PROTO LI_node * | LI__removeW_toc (LI_head *list, const TOC *toc) _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. |
CVS $Id: LI.ih,v 1.6 2011/03/24 23:05:42 apw Exp $
Appends the src list members to the dst list.
dst | A previously initialized list acting as the destination | |
src | A previously initialized list acting as the source |
References _LI_head::head, L__append(), _LI_head::rw, RW__lock2(), and RW__unlock2().
LI__EXP_FNC int LI__disable | ( | LI_head * | list | ) |
Disables the dequeing of nodes from this list.
list | A previously initialized list. |
0 | = List was previously disabled | |
!=0 | = List was previously enabled |
References _LI_head::rw, and RW__disable().
Referenced by FORK_disable().
LI__EXP_FNC int LI__enable | ( | LI_head * | list | ) |
Enable the dequeing of nodes from this list.
list | A previously initialized list. |
0 | = List was previously disabled | |
!=0 | = List was previously enabled |
References _LI_head::rw, and RW__enable().
Referenced by FORK_enable().
LI__EXP_FNC int LI__enabled | ( | const LI_head * | list | ) |
Returns the state of the enabled flag for this list.
list | A previously initialized list. |
0 | List is currently disabled | |
!=0 | List is currently enabled |
References _LI_head::rw, and RW__enabled().
Referenced by FORK_enabled(), and FORK_qenabled().
Adds a node to the tail of a previously initialized list.
list | A previously initialized list. | |
node | The node to add at the tail of the list. |
References _LI_head::head, L__insert(), _LI_head::rw, RW__lock(), RW__unlock(), and RW__wake().
Adds a node to the head of a previously initialized list.
list | A previously initialized list. | |
node | The node to add. |
References _LI_head::head, L__jam(), _LI_head::rw, RW__lock(), RW__unlock(), and RW__wake().
Prepends the src list members to the dst list.
dst | A previously initialized list acting as the destination | |
src | A previously initialized list acting as the source |
References _LI_head::head, L_prepend(), _LI_head::rw, RW__lock2(), and RW__unlock2().
Removes the node from the tail of a previously initialized list. An empty list returns NULL as its node.
list | A previously initialized list. |
References _LI_head::head, L__remove(), _LI_head::rw, RW__enabled(), RW__lock(), and RW__unlock().
Referenced by FORK_qsys(), LI__removeW(), and LI__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.
list | A previously initialized list |
References L__remove(), LI__remove(), _LI_head::rw, and RW_getW().
Referenced by FORK_qsysW().
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.
list | A previously initialized list | |
toc | The timeout control structure. Maybe specified as either TOC_NOWAIT or TOC_FOREVER. |
References L_remove(), LI__remove(), _LI_head::rw, RW_getW_toc(), and TOC_IS_NOWAIT.
Referenced by FORK_qsysW_toc().