mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 07:21:25 +12:00
CPU preemption control: remove yield before thread stop
This commit is contained in:
parent
b6d3fa8c66
commit
fc331da883
1 changed files with 6 additions and 3 deletions
|
@ -783,9 +783,12 @@ bool cpu_thread::check_state() noexcept
|
||||||
{
|
{
|
||||||
if (cpu_flag::wait - state0)
|
if (cpu_flag::wait - state0)
|
||||||
{
|
{
|
||||||
// Yield itself
|
if (!escape || !retval)
|
||||||
escape = false;
|
{
|
||||||
state0 += cpu_flag::yield;
|
// Yield itself
|
||||||
|
state0 += cpu_flag::yield;
|
||||||
|
escape = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (const u128 bits = s_cpu_bits)
|
if (const u128 bits = s_cpu_bits)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue