|
TABLE 2: Hook routines
|
|
Hook routine
|
When itýs called
|
|
StartupHook()
|
After the system startup code has called the StartOS() service and
the service has initialized all internal data, but prior to starting the
scheduler.
|
|
PreTaskHook()
|
By the scheduler, prior to a task being moved from the ready to
the running state. No task is running at the time of the call.
|
|
PostTaskHook()
|
After a task has been moved from running to ready, but prior to
the next task being started. No task is running at the time of the
call.
|
|
ErrorHook()
|
Whenever the OS detects an error. The error code is passed as an
argument.
|
|
ShutdownHook()
|
After the service ShutdownOS() has been called and the OS has
shut down all other services.
|
|
|
|
|