next up previous 199
Next: AMS_KICK - Send a KICK message to this task.
Up: Function Descriptions
Previous: AMS_INIT - Initialise ams and register an exit handler


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.




next up previous 199
Next: AMS_KICK - Send a KICK message to this task.
Up: Function Descriptions
Previous: AMS_INIT - Initialise ams and register an exit handler

AMS The Unix ADAM Message System
Starlink User Note 241
B D Kelly (ROE)
A J Chipperfield (RAL)
16 August 2001
E-mail:ussc@star.rl.ac.uk

Copyright © 2000 Council for the Central Laboratory of the Research Councils