Function: destroy_event

C Prototype

aclError aclrtDestroyEvent(aclrtEvent event)

Python Function

ret = acl.rt.destroy_event(event)

Function Usage

Destroys an event. This API can be called to destroy an event before the event is complete. In this case, this API does not block the thread until the event is complete. Event-related resources are automatically released when the event is complete.

Input Description

event: int, pointer address of the event to be destroyed.

Return Value

ret: int, error code.

Restrictions

When calling the acl.rt.destroy_event API to destroy an event, ensure that the event is not being used by other APIs.

Reference

For the API call example, see Event Synchronization and Inter-Stream Synchronization.