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:
Lukasz Jobczyk
2025-10-08 11:25:58 +00:00
committed by Compute-Runtime-Automation
parent 66a0f0d1bb
commit 6d6715bebf
5 changed files with 38 additions and 1 deletions

View File

@@ -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);