Skip to content

Commit

Permalink
ppu: Always switch to another thread when sleeping
Browse files Browse the repository at this point in the history
  • Loading branch information
elad335 committed Mar 30, 2019
1 parent 46cc28f commit a21c55b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rpcs3/Emu/Cell/lv2/lv2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1046,11 +1046,12 @@ void lv2_obj::sleep_timeout(cpu_thread& thread, u64 timeout)
if (it->first > wait_until)
{
g_waiting.emplace(it, wait_until, &thread);
return;
timeout = 0;
break;
}
}

g_waiting.emplace_back(wait_until, &thread);
if (timeout) g_waiting.emplace_back(wait_until, &thread);
}

schedule_all();
Expand Down

0 comments on commit a21c55b

Please sign in to comment.