Overview
C API (Component Interface)
struct EventModuleTerm { UINT32 __reserved; };

Currently, no action need be taken, though the module may perform its own processing at this point. The associated data structure is defined, but has no content, and should not be accessed.

Context

This event is the last event fired on a BRAHMS Module, and is an opportunity for the Module to terminate.

Notes
  • In contrast to all other events, EVENT_MODULE_INIT and EVENT_MODULE_TERM are fired only once on each loaded module - they are not fired for each component that the module instantiates.
  • In contrast to all other events, EVENT_MODULE_INIT and EVENT_MODULE_TERM are fired from the caller thread - they are not fired from the worker thread. They should perform no thread-specific, or instance-specific, operations.

Fields

None.

Action

None.

Example

This is the implementation used in the 1199 bindings.

C++ API (1199)
// event handler C_EXPORT Symbol EventHandler(Event* event) { switch (event->type) { case EVENT_MODULE_TERM: { EventModuleTerm* term = (EventModuleTerm*) event->data; return C_OK; } ... } }