mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-08 07:51:28 +12:00
atomic.cpp: remove load() from notify functions
Only compare masks for overlap for second overload (with mask provided). Explicit "new value" can be provided in new 3-arg overloads. Also rename atomic_storage_futex -> atomic_wait_engine.
This commit is contained in:
parent
9fb8d449fe
commit
557f0c5a8a
4 changed files with 89 additions and 58 deletions
|
@ -448,7 +448,7 @@ void cpu_thread::operator()()
|
|||
return;
|
||||
}
|
||||
|
||||
atomic_storage_futex::set_notify_callback([](const void*, u64 progress)
|
||||
atomic_wait_engine::set_notify_callback([](const void*, u64 progress)
|
||||
{
|
||||
static thread_local bool wait_set = false;
|
||||
|
||||
|
@ -514,7 +514,7 @@ void cpu_thread::operator()()
|
|||
ptr->compare_and_swap(_this, nullptr);
|
||||
}
|
||||
|
||||
atomic_storage_futex::set_notify_callback(nullptr);
|
||||
atomic_wait_engine::set_notify_callback(nullptr);
|
||||
|
||||
g_tls_log_control = [](const char*, u64){};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue