mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-08 07:51:28 +12:00
Replace notifier::lock_shared() with try_lock_shared()
Also add notify_one(), try_lock() and unlock() Move some code in cond.cpp
This commit is contained in:
parent
8d5bbfb850
commit
a33f297315
3 changed files with 134 additions and 64 deletions
|
@ -1733,7 +1733,9 @@ s64 SPUThread::get_ch_value(u32 ch)
|
|||
fmt::throw_exception("Not supported: event mask 0x%x" HERE, mask1);
|
||||
}
|
||||
|
||||
std::shared_lock<notifier> pseudo_lock(vm::reservation_notifier(raddr, 128));
|
||||
std::shared_lock<notifier> pseudo_lock(vm::reservation_notifier(raddr, 128), std::try_to_lock);
|
||||
|
||||
verify(HERE), pseudo_lock;
|
||||
|
||||
while (res = get_events(), !res)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue