mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 06:15:36 +08:00
performance: move instead of copy
Related-To: NEO-15630 Signed-off-by: Jakub Nowacki <jakub.nowacki@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
f0fed704a3
commit
be34c1ac86
@@ -24,7 +24,7 @@ void HostFunctionWorkerAtomic::start() {
|
||||
std::lock_guard<std::mutex> lg{workerMutex};
|
||||
if (!worker) {
|
||||
worker = std::make_unique<std::jthread>([this](std::stop_token st) {
|
||||
this->workerLoop(st);
|
||||
this->workerLoop(std::move(st));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user