AMS_INITEH

Initialise ams and optionally register an exit handler

Invocation

(void)ams_initeh( own_name, eh, status )

Arguments

own_name = char * (given)
name of this task

eh = int (given)

whether to register exit handler

status = int * (given and returned)

global status

Description:

Initialise AMS optionally registering an exit handler

Implementation

Initialise the internal data structures.

Register with msp, obtain the command queue for incoming messages, then create the queues used for this task sending messages to itself.

Finally set up the signal handler if so requested.