mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 21:41:26 +12:00
Update sys_timer.cpp
This commit is contained in:
parent
ba9f55679d
commit
2e4bf9ef1b
1 changed files with 8 additions and 5 deletions
|
@ -144,13 +144,16 @@ 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))
|
||||||
{
|
{
|
||||||
const u64 advised_sleep_time = timer->check(_now);
|
if (const u64 advised_sleep_time = timer->check(_now))
|
||||||
|
|
||||||
if (sleep_time > advised_sleep_time)
|
|
||||||
{
|
{
|
||||||
sleep_time = advised_sleep_time;
|
if (sleep_time > advised_sleep_time)
|
||||||
|
{
|
||||||
|
sleep_time = advised_sleep_time;
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue