 |
EV_centralDispatcher |
Function (ROM Call 0x156) |
Enters the main controlling loop of the TIOS.
As the name suggests this is the main controlling loop of the entire TIOS. This
functions initializes all installed applications by sending CM_INIT
event to them, starts the "Home screen" application, then calls EV_eventLoop
under an error handler, so if any error appeared during execution of the event loop, it will
be catched by the error handler, which will first dispatch the error code to
ERD_process then restart the event loop.
Note: As far as I know, there is no any need to call this function from your program. This
will enter the endless loop, which can not be broken even by throwing an error from the
event handler (the method used to exit from EV_eventLoop), because
the event loop is now executed under the internal error handler (maybe the only method to exit
from such loop is using longjmp from the event handler, but
I don't believe that such barbaric method would leave the system in a stable state).
Uses: EV_eventLoop, EV_hook, EV_sendEvent, EV_startTask, ER_catch, ERD_process, reset_control_flags, ST_busy, EV_appA, EV_appB, EV_appSide, EV_currentApp, EV_runningApp, OO_firstACB, OO_NextACB, ROM Call 0x428