mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
Defer Event destruction if command is not completed
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
f6ee9c8ba0
commit
f9a5f8a86e
@@ -2131,6 +2131,7 @@ cl_int CL_API_CALL clReleaseEvent(cl_event event) {
|
||||
DBG_LOG_INPUTS("cl_event", event, "Event", pEvent);
|
||||
|
||||
if (pEvent) {
|
||||
pEvent->handleCompletionBeforeDestruction();
|
||||
pEvent->release();
|
||||
TRACING_EXIT(clReleaseEvent, &retVal);
|
||||
return retVal;
|
||||
|
||||
Reference in New Issue
Block a user