GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > MEM / V5-7-1

Constituent: mem_unit_test     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

mem_util_task.c File Reference

Create and destroy tasks. More...

#include "ITC/ITC_pubdefs.h"
#include "mem_unit_test.h"
#include "mem_util_pool.h"
#include "mem_util_task.h"

Include dependency graph for mem_util_task.c:


Functions

int TASK_init (test_Test_Descriptor *td_p, ITC_Task **task_pp, ITC_TaskID tid)
 Create a task.
int TASK_add_queue (test_Test_Descriptor *td_p, ITC_Task *task_p, ITC_QueueID queue_id, ITC_cb_Dispatch *dispatch_p)
 Add a queue to a task.
int TASK_start (test_Test_Descriptor *td_p, ITC_Task *task_p, char *name, int priority)
 Start a task.
int TASK_stop (test_Test_Descriptor *td_p, ITC_Task *task_p)
 Stop a task.
int TASK_remove_queue (test_Test_Descriptor *td_p, ITC_Task *task_p, ITC_QueueID queue_id)
 Remove a queue from a task.
int TASK_shutdown (test_Test_Descriptor *td_p, ITC_Task *task_p)
 Shutdown a task.

Detailed Description

Create and destroy tasks.

**  CVS $Id: mem_util_task.c,v 1.1 2005/10/25 21:53:19 dmay Exp $
**  

Function Documentation

int TASK_add_queue test_Test_Descriptor td_p,
ITC_Task *  task_p,
ITC_QueueID  queue_id,
ITC_cb_Dispatch *  dispatch_p
 

Add a queue to a task.

Parameters:
td_p Pointer to test descriptor.
task_p Pointer to task control block.
queue_id ID of the queue to add.
dispatch_p Pointer to dispatch function for the queue.
Returns:
MSG code.

int TASK_init test_Test_Descriptor td_p,
ITC_Task **  task_pp,
ITC_TaskID  tid
 

Create a task.

Parameters:
td_p Pointer to test descriptor.
task_pp Location to return pointer to task control block.
tid Task ID.
Return values:
0 Success.
-1 Failure.

int TASK_remove_queue test_Test_Descriptor td_p,
ITC_Task *  task_p,
ITC_QueueID  queue_id
 

Remove a queue from a task.

Parameters:
td_p Pointer to test descriptor.
task_p Pointer to task control block.
queue_id ID of the queue to remove.
Returns:
MSG code.

int TASK_shutdown test_Test_Descriptor td_p,
ITC_Task *  task_p
 

Shutdown a task.

Parameters:
td_p Pointer to test descriptor.
task_p Pointer to task control block.
Return values:
0 Success.
-1 Failure.

int TASK_start test_Test_Descriptor td_p,
ITC_Task *  task_p,
char *  name,
int  priority
 

Start a task.

Parameters:
td_p Pointer to test descriptor.
task_p Pointer to task control block.
name Name string for the task.
priority Priority of the task.
Returns:
MSG code.

int TASK_stop test_Test_Descriptor td_p,
ITC_Task *  task_p
 

Stop a task.

Parameters:
td_p Pointer to test descriptor.
task_p Pointer to task control block.
Returns:
MSG code.


Generated on Tue Aug 8 23:24:37 2006 by  doxygen 1.4.4