次の方法で共有


dwReschedTime (Compact 2013)

10/16/2014

This global variable stores the time, in ticks, when a reschedule event must be triggered by the OEM.

Syntax

extern volatile UINT32 dwReschedTime;

Parameters

None.

Return Value

None.

Remarks

This variable is implemented in the NKGLOBAL structure. The OEM uses this variable in the OEMIdle function and OEM Timer ISR.

This variable and CurMSec provide all needed information to schedule a timer interrupt.

  • In TimerISR, an OEM returns SYSINTR_RESCHED if (int) (CurMSecdwReschedTime) >= 0, returns SYSINTR_NOP otherwise.
  • In OEMIdle, the amount of time calculated by OEM to go idle is (int) (dwRescheduleTimeCurMSec) and OEMIdle should set the timer interrupt accordingly. OEM should return immediately if the value is less than or equal to zero.

Requirements

Header

Developer Implemented

See Also

Reference

Required OAL Variables
OEMIdle
CurMSec