aclrtDestroyEvent

Description

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.

Restrictions

It is the aclrtDestroyEvent caller's responsibility to ensure that the event is not being accessed by any other API calls.

Prototype

aclError aclrtDestroyEvent(aclrtEvent event)

Parameters

Parameter

Input/Output

Description

event

Input

Event to destroy.

Returns

0 on success; else, failure.

See Also