mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 09:58:55 +08:00
performance: Lock svm allocs mutex once in appendLaunchKernelWithArgs
Resolves: NEO-15774 Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
66a0f0d1bb
commit
6d6715bebf
@@ -1196,6 +1196,10 @@ std::unique_lock<std::mutex> SVMAllocsManager::obtainOwnership() {
|
||||
return std::unique_lock<std::mutex>(mtxForIndirectAccess);
|
||||
}
|
||||
|
||||
SVMAllocsManager::ContainerReadLockTypeRAIIHelper SVMAllocsManager::obtainReadContainerLock() {
|
||||
return ContainerReadLockTypeRAIIHelper(*this);
|
||||
}
|
||||
|
||||
void SVMAllocsManager::insertSVMAlloc(void *svmPtr, const SvmAllocationData &allocData) {
|
||||
ContainerReadWriteLockType lock(mtx);
|
||||
this->svmAllocs.insert(svmPtr, allocData);
|
||||
|
||||
Reference in New Issue
Block a user