Destroys an event created by the aclrtCreateEvent or aclrtCreateEventWithFlag call. This API is synchronous. For an event created by the aclrtCreateEvent call, it can be destroyed only when the tasks associated with the aclrtSynchronizeEvent or aclrtStreamWaitEvent call are all complete.
It is the aclrtDestroyEvent caller's responsibility to ensure that the event is not being accessed by any other API calls.
aclError aclrtDestroyEvent(aclrtEvent event)
Parameter |
Input/Output |
Description |
|---|---|---|
event |
Input |
Event to destroy. |
0 on success; else, failure.