mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
Revert async Event destruction
This revertsf9a5f8a86eandf89c731a11Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
268393d776
commit
83a9037640
@@ -44,11 +44,7 @@ Event *AsyncEventsHandler::processList() {
|
||||
|
||||
for (auto event : list) {
|
||||
event->updateExecutionStatus();
|
||||
|
||||
bool eventNotReady = (event->peekExecutionStatus() > CL_COMPLETE);
|
||||
bool trackDeferredDeletion = event->isDeletionDeferred() && eventNotReady;
|
||||
|
||||
if (event->peekHasCallbacks() || (event->isExternallySynchronized() && eventNotReady) || trackDeferredDeletion) {
|
||||
if (event->peekHasCallbacks() || (event->isExternallySynchronized() && (event->peekExecutionStatus() > CL_COMPLETE))) {
|
||||
pendingList.push_back(event);
|
||||
if (event->peekTaskCount() < lowestTaskCount) {
|
||||
sleepCandidate = event;
|
||||
|
||||
Reference in New Issue
Block a user