Slightly delaying a race condition

This commit is contained in:
dingusdev 2024-09-24 21:10:10 -07:00
parent 55d7c8f09d
commit 01ceaef8d7

View File

@ -345,9 +345,9 @@ static uint64_t process_events()
exec_timer = false;
uint64_t slice_ns = TimerManager::get_instance()->process_timers();
if (slice_ns == 0) {
// execute 10.000 cycles
// execute 25.000 cycles
// if there are no pending timers
return g_icycles + 10000;
return g_icycles + 25000;
}
return g_icycles + (slice_ns >> icnt_factor) + 1;
}