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  

LI.c File Reference

Implementation file for the interlocked singly linked list routines, LI. More...

#include "PBS/L_protos.h"
#include "PBS/RW_protos.h"
#include "PBS/LI.h"

Include dependency graph for LI.c:


Functions

int LI_init (LI_head *list, LI_type type)
 Initializes the list head of a singly linked list to an empty list.
int LI_destroy (LI_head *list)
 Destroys the data structures associate with a list.

Detailed Description

Implementation file for the interlocked singly linked list routines, LI.

Author:
JJRussell - russell@slac.stanford.edu
    CVS $Id: LI.c,v 1.3 2004/10/20 14:36:53 russell Exp $
    

This file simple picks up the correct implementation for the various platforms, redefining the inline versions to be traditional callable routines.


Function Documentation

int LI_destroy LI_head list  ) 
 

Destroys the data structures associate with a list.

Parameters:
list Pointer to the list to destroy.
This routine releases the resources acquired when the list was initialized by LI_init.

int LI_init LI_head list,
LI_type  type
 

Initializes the list head of a singly linked list to an empty list.

Parameters:
list Pointer to the list to initialize.
type The type of interlocking linked list
The list is initialized to an empty list. This must be done before performing any other operations on the list. The type determines how the list behaves when one attempts to remove a node from an empty list.


Generated on Wed Dec 20 05:02:17 2006 by  doxygen 1.4.4