SPU: use normal notify() thread function
Using raw_notify() everywhere was overkill.
This commit is contained in:
@@ -22,7 +22,7 @@ inline void try_start(spu_thread& spu)
|
|||||||
}).second)
|
}).second)
|
||||||
{
|
{
|
||||||
spu.state -= cpu_flag::stop;
|
spu.state -= cpu_flag::stop;
|
||||||
thread_ctrl::raw_notify(static_cast<named_thread<spu_thread>&>(spu));
|
thread_ctrl::notify(static_cast<named_thread<spu_thread>&>(spu));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -3646,7 +3646,7 @@ bool spu_thread::stop_and_signal(u32 code)
|
|||||||
|
|
||||||
if (thread.get() != this)
|
if (thread.get() != this)
|
||||||
{
|
{
|
||||||
thread_ctrl::raw_notify(*thread);
|
thread_ctrl::notify(*thread);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -756,7 +756,7 @@ error_code sys_spu_thread_group_start(ppu_thread& ppu, u32 id)
|
|||||||
if (thread && ran_threads--)
|
if (thread && ran_threads--)
|
||||||
{
|
{
|
||||||
thread->state -= cpu_flag::stop;
|
thread->state -= cpu_flag::stop;
|
||||||
thread_ctrl::raw_notify(*thread);
|
thread_ctrl::notify(*thread);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -906,7 +906,7 @@ error_code sys_spu_thread_group_resume(ppu_thread& ppu, u32 id)
|
|||||||
if (thread)
|
if (thread)
|
||||||
{
|
{
|
||||||
thread->state -= cpu_flag::suspend;
|
thread->state -= cpu_flag::suspend;
|
||||||
thread_ctrl::raw_notify(*thread);
|
thread_ctrl::notify(*thread);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user