typedef void (CALLBACK * TPreemptiveProc)( struct TTaskContext FAR *TaskContext );
This type defines a pointer to the operating system scheduler routine. It is utilized by the arSetPreemptiveHandler function to register the system's preemption handler.
The scheduler accepts a single parameter: a pointer to the current task's context descriptor. This descriptor is used to save the state of the task being preempted. Upon return, the scheduler overwrites the contents of this descriptor with the context of the next task selected for execution.
| Version: | 1.0 |
|---|---|
| Header file: | AR_API.h |
| See also: | arSetPreemptiveHandler, CALLBACK, context switching, FAR, operating system scheduler, TTaskContext |