aclrtDestroyEvent

Description

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.

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

The value 0 indicates success, and other values indicate failure. For details, see aclError.

See Also

For details about the API call sequence and example, see Sample Code for Event Synchronization and API Call Sequence and Sample Code for Task Synchronization Between Streams.