mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 09:58:55 +08:00
Deferred deletion of allocations in main thread
Add a clearQueueTillFirstFailure interface to DeferredDeleter, which iterates the queue from the front and delete the allocations in the queue till a failure. It is called by defer deletion of allocations occupied by mutliple contexts to unlock the execution in main thread Related-To: NEO-7532 Signed-off-by: HeFan2017 <fan.f.he@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
a572f6ce95
commit
c268e30189
@@ -154,6 +154,7 @@ void DrmMemoryManager::releaseBufferObject(uint32_t rootDeviceIndex) {
|
||||
}
|
||||
|
||||
void DrmMemoryManager::commonCleanup() {
|
||||
MemoryManager::commonCleanup();
|
||||
if (gemCloseWorker) {
|
||||
gemCloseWorker->close(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user