mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
fix: unblock main thread after mutex unlock in DeferredDeleter
DeferredDeleter instance could get deleted before worker thread called unlock() on queue mutex leading to an error Related-To: NEO-14896 Signed-off-by: Oskar Hubert Weber <oskar.hubert.weber@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ef9eb2f703
commit
c3d5ee8332
@@ -107,8 +107,8 @@ void *DeferredDeleter::run(void *arg) {
|
||||
lock.lock();
|
||||
// Check whether working thread should be stopped
|
||||
} while (!self->shouldStop());
|
||||
self->exitedMainLoop = true;
|
||||
lock.unlock();
|
||||
self->exitedMainLoop = true;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user