mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-31 12:11:31 +08:00
Fix deadlock in allocation list cleanup.
Resolves: NEO-3582 Change-Id: Ia871adc38a9737dc57c187557573b02cc321b3e5 Signed-off-by: Zdunowski, Piotr <piotr.zdunowski@intel.com>
This commit is contained in:
@@ -142,6 +142,10 @@ void HostPtrManager::storeFragment(AllocationStorageData &storageData) {
|
||||
storeFragment(fragment);
|
||||
}
|
||||
|
||||
std::unique_lock<std::recursive_mutex> HostPtrManager::obtainOwnership() {
|
||||
return std::unique_lock<std::recursive_mutex>(allocationsMutex);
|
||||
}
|
||||
|
||||
void HostPtrManager::releaseHandleStorage(OsHandleStorage &fragments) {
|
||||
for (int i = 0; i < maxFragmentsCount; i++) {
|
||||
if (fragments.fragmentStorageData[i].fragmentSize || fragments.fragmentStorageData[i].cpuPtr) {
|
||||
|
||||
Reference in New Issue
Block a user