I have an event handling method, It is sensitive to thean event. and generates a notify event, though notiying it,
I want to insert calling a new (lengthy) procedure, for example refreshing the graphic display, or stepwise operation.
That is the chain of event handling is suspended, I need to change some activity, like pressing the "Step" knob.
Can I keep event handling activity in this without making troubles in handling? Or, is there some tested idea for
implementing an interactive SystemC program?
Next_event_thread(void)
{
while(true)
{
// DEBUG_PRINT_SC("Waiting for instruction");
wait(Next_event);
---- // intercept here
wait(WAIT_TIME);
MyObject->MEvents->norify();
}