TPreemptiveProc Type
Declaration
typedef void (CALLBACK * TPreemptiveProc)(
  struct TTaskContext FAR *TaskContext
);
Description

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.

SpaceShadow documentation