GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> PBS / V2-12-1 > pbs / rhel6-32


Interface   Data Structures   File List   Data Fields   Globals  

PL.c File Reference

Implements the callable interface for the PL routines. More...

#include <PBS/PL.h>
#include <PBS/L.ih>
#include <PBS/L_protos.h>
#include <PBS/RW_protos.h>

Functions

int PL_init (PL_ctl *pl, PL_type type, int nques)
 Initializes the list head of a doubly linked list to an empty list of the specified type.
int PL_destroy (PL_ctl *pl)
 Destroys the data structures associate with a PL.


Detailed Description

Implements the callable interface for the PL routines.

Author:
JJRussell - russell@slac.stanford.edu
    CVS $Id: PL.c,v 1.5 2011/03/24 23:05:46 apw Exp $

This defines the callable interface for the Priority List routines.


Function Documentation

int PL_destroy ( PL_ctl pl  ) 

Destroys the data structures associate with a PL.

Parameters:
pl Pointer to the PL to destroy.
This routine frees any resources the PL list gathered when it was initialized. The actual resources released depends on both the platform and whether blocking and timeouts were requested.

References _PL_ctl::rw, and RW_destroy().

Referenced by FORK_destroy().

int PL_init ( PL_ctl pl,
PL_type  type,
int  nques 
)

Initializes the list head of a doubly linked list to an empty list of the specified type.

Parameters:
pl Pointer to the Priority Ques control structure to initialize.
type The type blocking/waiting, see PL_type
nques The number of ques to support
Return values:
0,Success 
ENOMEM,Insufficient memory
ENOTSUP,Type not supported.

References _PL_que::head, _PL_que::id, L_init(), _PL_ctl::mactive, _PL_ctl::mcfg, _PL_ctl::nques, _PL_que::pl, PL_NLIST, _PL_ctl::ques, _PL_ctl::rw, and RW_init().

Referenced by FORK_create().


Generated on Mon Aug 1 14:54:42 2011 by  doxygen 1.5.8