Optimization: disable atomic_wait_engine notify callback for SPU

Disable placebo callback calls in notify_all.
Don't use callback at all if TSX.
Based on kd-11 findings.
This commit is contained in:
Nekotekina 2022-04-22 20:57:22 +03:00
parent fb27ed4deb
commit 6d3052c5dd
2 changed files with 1 additions and 11 deletions

View file

@ -446,7 +446,7 @@ void cpu_thread::operator()()
// Register thread in g_cpu_array
s_cpu_counter++;
atomic_wait_engine::set_notify_callback([](const void*, u64 progress)
atomic_wait_engine::set_notify_callback(g_use_rtm || id_type() != 1 /* PPU */ ? nullptr : +[](const void*, u64 progress)
{
static thread_local bool wait_set = false;