mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-25 20:46:55 +01:00
Optimise waiter queue push
This commit is contained in:
parent
e63108bff1
commit
34611ba180
@ -289,8 +289,10 @@ namespace skyline::gpu::interconnect {
|
||||
}
|
||||
|
||||
void ExecutionWaiterThread::Queue(std::shared_ptr<FenceCycle> cycle, std::function<void()> &&callback) {
|
||||
std::unique_lock lock{mutex};
|
||||
pendingSignalQueue.push({std::move(cycle), std::move(callback)});
|
||||
{
|
||||
std::unique_lock lock{mutex};
|
||||
pendingSignalQueue.push({std::move(cycle), std::move(callback)});
|
||||
}
|
||||
condition.notify_all();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user