mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-20 13:11:34 +08:00
use release for cl-objects instead of delete
- fix for data race in events - modification of the addition child event Change-Id: I6ea3a413f13f13a91d37d20d8b9fad37d0ffafb9
This commit is contained in:

committed by
sys_ocldev

parent
3820a5e8e5
commit
e1eab521e7
@ -416,11 +416,6 @@ void Event::unblockEventsBlockedByThis(int32_t transitionStatus) {
|
||||
|
||||
childEvent->unblockEventBy(*this, taskLevelToPropagate, transitionStatus);
|
||||
|
||||
if (childEvent->getCommandQueue() && childEvent->isCurrentCmdQVirtualEvent()) {
|
||||
// Check virtual event state and delete it if possible.
|
||||
childEvent->getCommandQueue()->isQueueBlocked();
|
||||
}
|
||||
|
||||
childEvent->decRefInternal();
|
||||
auto next = childEventRef->next;
|
||||
delete childEventRef;
|
||||
|
Reference in New Issue
Block a user