mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-27 16:35:29 +03: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) {
|
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();
|
condition.notify_all();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user