Optimise waiter queue push

This commit is contained in:
Billy Laws 2023-04-05 20:13:00 +01:00
parent e63108bff1
commit 34611ba180

View File

@ -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)});
}
condition.notify_all();
}