GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > MSG / V3-0-3
Constituent: msg_mt     Tag: linux-gcc
#include <stdlib.h>
#include <string.h>
#include "PBS/MBA.h"
#include "PBS/TASK.h"
#include "PBS/WCT.h"
#include "MDB/MDB_pubdefs.h"
#include "MSG/MSG_msgs.h"
#include "MSG_health.h"
#include "MSG_prvdefs.h"
Include dependency graph for MSG_control.c:
Functions | |
static unsigned int | countsSince (MSG_Counts *cnt, unsigned int sel, unsigned int rst) |
Worker bee for MSG_countsSinceStart() and MSG_countsSinceReset(). | |
unsigned int | MSG_countsSinceReset (MSG_Counts *cnt, unsigned int rst) |
Return instrumentation counts since last reset. | |
unsigned int | MSG_countsSinceStart (MSG_Counts *cnt) |
Return instrumentation counts since message task started. | |
unsigned int | MSG_getCtlThread () |
Return the threading model. | |
unsigned int | MSG_initialize (const MSG_InitPrm *prm) |
Take message system from state MSG_S_UNINITIALIZED to state MSG_S_INITIALIZED. | |
unsigned int | MSG_shutdown () |
Take message system from state MSG_S_INITIALIZED to state MSG_S_UNINITIALIZED. | |
unsigned int | MSG_startTask (const TASK_attr *attr) |
Take message system from state MSG_S_INITIALIZED to state MSG_S_STARTED. | |
unsigned int | MSG_stopTask () |
Take message system from state MSG_S_STARTED to state MSG_S_INITIALIZED. | |
Variables | |
static const unsigned int | threaded = 1 |
Carry knowledge of the threading model into the run time environment. | |
MSG_Control * | MSG_mcb |
Pointer to message control block structure. | |
MSG_AltMessage | MSG_alt [MSG_L_ALTERNATE] |
Translation table for the eight "special" messages. |
CVS $Id: MSG_control.c,v 1.12 2005/09/22 01:45:07 apw Exp $
|
Worker bee for MSG_countsSinceStart() and MSG_countsSinceReset().
|
|
Return instrumentation counts since last reset.
|
|
Return instrumentation counts since message task started.
|
|
Return the threading model.
|
|
Take message system from state MSG_S_UNINITIALIZED to state MSG_S_INITIALIZED.
|
|
Take message system from state MSG_S_INITIALIZED to state MSG_S_UNINITIALIZED.
|
|
Take message system from state MSG_S_INITIALIZED to state MSG_S_STARTED.
In single-threaded mode, MSG_startTask() does not fork a task, and all message processing is done inline with the MSG_report() call. The task attributes block is ignored. In both modes (and before the task fork in multi-threaded mode), MSG_startTask() calls each of the output processing routines in turn with a flag to indicate an inialization call. |
|
Take message system from state MSG_S_STARTED to state MSG_S_INITIALIZED.
In single-threaded mode, there is no forked task to run down. In both modes (and after the forked task has run down in multi-threaded mode), MSG_stopTask() calls each of the output processing routines in turn with a flag to indicate a cleanup call. |
|
Initial value: { { MSG_UNKNOWNS, NULL, NULL }, { MSG_UNKNOWNW, NULL, NULL }, { MSG_UNKNOWNI, NULL, NULL }, { MSG_UNKNOWNE, NULL, NULL }, { MSG_UNIXGOOD, NULL, NULL }, { MSG_UNIXEROR, NULL, NULL }, { MSG_GAPBEGIN, NULL, NULL }, { MSG_GAPEND, NULL, NULL } } Small database to make the substitution of alternative messages more efficient. The NULLs are replaced during the initialization phase (once only). |
|
Pointer to message control block structure. Pointer to the control block for the message system. |
|
Carry knowledge of the threading model into the run time environment. Used mainly for testing purposes. |