Esa_Interrupt()
Abstract
Flags the event loop to return once the current event is completed
Syntax
Esa_Interrupt (esa_state_ptr)
| Argument | Type | Description |
|---|---|---|
esa_state_ptr |
EsaT_State_Handle |
ESA state information generated by Esa_Init() |
Return Type
void
no return value
Header
esa.h
Details
This function interrupts the execution of events to let a cosimulation deal with an interface change.
The Riverbed Modeler simulation can execute an arbitrary set of events depending on how it is invoked with Esa_Execute_Until(). If this function is invoked, the execution will stop and Esa_Execute_Until() will return with a status of ESAC_STATUS_EXTERNAL.
This would typically be used inside an interface callback to stop the processing of events and let the cosimulation portion handle the interface change.