![]() |
Home |
|
Function RTKPreemptionsONRTKernel-32 supports both cooperative and preemptive multitasking. Function RTKPreemptionsON enables preemptive scheduling: void RTKPreemptionsON(void); After initialization of RTKernel-32, preemptions are enabled automatically only if RF_PREEMPTIVE is set in RTKConfig.Flags. Please refer to Multitasking, Real-Time, and RTKernel-32, What is Multitasking? and Advanced Topics, Preemptive or Cooperative Multitasking? for a detailed discussion of preemptive and cooperative scheduling. RTKPreemptionsON is only supported if the interrupt driver supports task switches inside interrupt handlers. Use function RTKCanPreempt to check whether preemptions are supported.
|