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

This type is used to carry a pointer to the operating system scheduler routine. The type is used by an arSetPreemptiveHandler function that sets it as a preemption support routine. The scheduler takes one parameter, a pointer to current task context descriptor and uses it to remember current task state for further resume. When the scheduler routine returns, the current context descriptor is overwritten with new values, describing which task should be resumed.

SpaceShadow documentation