mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-22 15:29:16 +01:00
Add early-timeout path for WaitForAddress
This commit is contained in:
parent
d0c56235f4
commit
08ef88b156
@ -309,6 +309,9 @@ namespace skyline::kernel::type {
|
||||
break;
|
||||
}
|
||||
|
||||
if (timeout == 0) [[unlikely]]
|
||||
return result::TimedOut;
|
||||
|
||||
auto queue{syncWaiters.equal_range(address)};
|
||||
syncWaiters.insert(std::upper_bound(queue.first, queue.second, state.thread->priority.load(), [](const i8 priority, const SyncWaiters::value_type &it) { return it.second->priority > priority; }), {address, state.thread});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user