Skip to content

Commit

Permalink
Fix sys_timer_usleep specifically with 0 sleep time
Browse files Browse the repository at this point in the history
Remove context switch, replace it with host yield() for giving some cpu time for SPUs ans RSX
  • Loading branch information
elad335 committed Mar 23, 2019
1 parent 529ad6a commit 4d2ba2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpcs3/Emu/Cell/lv2/sys_timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ error_code sys_timer_usleep(ppu_thread& ppu, u64 sleep_time)
}
else
{
lv2_obj::yield(ppu);
std::this_thread::yield();
}

return CELL_OK;
Expand Down

0 comments on commit 4d2ba2c

Please sign in to comment.