GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EFC / V4-5-0 > efc / sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

EHP.c File Reference

Event Handler Proxy, creates a proxy task to handle event related processing that is either not appropriate or too time consuming (i.e. results in unacceptable latency) in the LCBD event handling task). More...

#include <EFC/EHP.h>
#include <PBS/TASK.h>
#include <PBS/FORK.h>
#include <PBS/TOC.h>
#include <PBS/MBA.h>
#include <string.h>

Classes

struct  _EHP

Defines

#define NQUES   31

Typedefs

typedef struct _EHP EHP

Functions

static int get_task_priority ()
 Get the priority of this task.
FORK_fcb * EHP_create (void)
 Creates the Event Handler Proxy task.
unsigned int EHP_destroy (void)
 Destroys the Event Handler Proxy task.
FORK_que * EHP_queGet (int que_id)
 Gets the fork que handle of the specified fork que.

Variables

static EHP Ehp = { NULL }


Detailed Description

Event Handler Proxy, creates a proxy task to handle event related processing that is either not appropriate or too time consuming (i.e. results in unacceptable latency) in the LCBD event handling task).

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: EHP.c,v 1.2 2011/03/27 04:55:30 russell Exp $

A FORK task with 31 queues is established. Clients may request one of the que to do their work in and then que such work using the normal FORK_qusr routine.


Function Documentation

FORK_fcb * EHP_create ( void   ) 

Creates the Event Handler Proxy task.

Returns:
The fork control block of the created task or NULL on failure

References get_task_priority().

Referenced by EHP_queGet().

unsigned int EHP_destroy ( void   ) 

Destroys the Event Handler Proxy task.

Returns:
The status from FORK_destroy

FORK_que * EHP_queGet ( int  que_id  ) 

Gets the fork que handle of the specified fork que.

Returns:
The FORK que handle or NULL on failure
This routine will create the fork task if is does not already exist.

References EHP_create().

static inline int get_task_priority (  )  [inline, static]

Get the priority of this task.

Returns:
The priority of this task
This function uses CPU_DB_getTaskPriority on VXWORKs platforms and returns 0 for all host platforms. No host platform actually supports task priorities, so doing this eliminates CPU_DB from the load.

Referenced by EHP_create().


Generated on Wed Jan 4 14:05:07 2012 by  doxygen 1.5.8