F.4. para_mod_body

Module body.

Synopsis. 

#include <parabellym/api.h>

void para_mod_body(int qid);

Arguments. 

qid

The identifier of the queue to which the current thread is attached. For use with para_mod_signal and para_msg_attach.

This value should not be made available to other modules. Knowing this value gives a different module the ability to hijack messages.

Access. 

Unrestricted.

Description. 

This function implements the life cycle of a module. The function is executed after the module is loaded into the system. When the function returns, the module is unloaded from the system and the main module thread quits. Additional threads spawned by the module must be manually shut down before exiting; continuing to execute code from an unloaded library will result in errors fatal for the environment.