Add a should_invoke_scheduler method
This commit is contained in:
parent
986aa01948
commit
bbfaa4645a
@ -127,3 +127,8 @@ namespace Timer
|
||||
arch_init();
|
||||
}
|
||||
}
|
||||
|
||||
bool should_invoke_scheduler()
|
||||
{
|
||||
return (timer_ticks % ARCH_TIMER_FREQ) == 0;
|
||||
}
|
@ -35,3 +35,5 @@ namespace Timer
|
||||
void arch_init();
|
||||
void init();
|
||||
}
|
||||
|
||||
bool should_invoke_scheduler();
|
Loading…
Reference in New Issue
Block a user