Update sys_timer.cpp
This commit is contained in:
@@ -144,14 +144,17 @@ void lv2_timer_thread::operator()()
|
|||||||
|
|
||||||
for (const auto& timer : timers)
|
for (const auto& timer : timers)
|
||||||
{
|
{
|
||||||
if (lv2_obj::check(timer))
|
while (lv2_obj::check(timer))
|
||||||
|
{
|
||||||
|
if (const u64 advised_sleep_time = timer->check(_now))
|
||||||
{
|
{
|
||||||
const u64 advised_sleep_time = timer->check(_now);
|
|
||||||
|
|
||||||
if (sleep_time > advised_sleep_time)
|
if (sleep_time > advised_sleep_time)
|
||||||
{
|
{
|
||||||
sleep_time = advised_sleep_time;
|
sleep_time = advised_sleep_time;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user