mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 01:38:37 +12:00
Atomics: use WaitOnAddress if available (Win8+)
This commit is contained in:
parent
4384ae15b4
commit
f0fd7e2e19
3 changed files with 84 additions and 17 deletions
|
@ -818,11 +818,15 @@ bool cpu_thread::suspend_work::push(cpu_thread* _this, bool cancel_if_not_suspen
|
|||
// Check only CPUs which haven't acknowledged their waiting state yet
|
||||
for_all_cpu<true>([&](cpu_thread* cpu, u64 index)
|
||||
{
|
||||
verify(HERE), cpu->state & cpu_flag::pause;
|
||||
|
||||
if (cpu->state & cpu_flag::wait)
|
||||
{
|
||||
ctr->cpu_copy_bits[index / 64] &= ~(1ull << (index % 64));
|
||||
}
|
||||
});
|
||||
|
||||
_mm_pause();
|
||||
}
|
||||
|
||||
// Extract queue and reverse element order (FILO to FIFO) (TODO: maybe leave order as is?)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue