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:
HeFan2017
2022-12-12 10:57:02 +00:00
committed by Compute-Runtime-Automation
parent a572f6ce95
commit c268e30189
13 changed files with 159 additions and 23 deletions

View File

@@ -154,6 +154,7 @@ void DrmMemoryManager::releaseBufferObject(uint32_t rootDeviceIndex) {
}
void DrmMemoryManager::commonCleanup() {
MemoryManager::commonCleanup();
if (gemCloseWorker) {
gemCloseWorker->close(true);
}