Next: , Previous: , Up: Transferring Control between Nodes   [Contents][Index]


4.3.2.2 Returning Control from a Node

Use the following function in an event handler to return from last nested call to qsmm_node_call_default.

Function: void qsmm_return_to_caller_node (qsmm_t model)

This function sets the flag associated with a multinode model causing the function qsmm_node_call_default to exit. The latter function resets that flag before sending an event QSMM_EVT_NODE_ENTER to the instruction class set and before sending an event QSMM_EVT_ACTIVATE to an instruction meta-class and checks the flag after processing these events. In case of calling the function qsmm_return_to_caller_node while processing the event QSMM_EVT_ACTIVATE by the instruction meta-class, qsmm_node_call_default ignores a set instruction outcome.