aclrtDestroyEvent
Applicable Products
|
Product |
Supported |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Function
Destroys an event. This API can be called to destroy an event even before the event is complete. In this case, this API does not block the thread to wait for the event to be complete. Event-related resources will not be automatically released until the event is complete.
Prototype
1
|
aclError aclrtDestroyEvent(aclrtEvent event) |
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
event |
Input |
Event to destroy. For details about the type definition, see aclrtEvent. |
Returns
0 on success; otherwise, failure. For details, see aclError.
Restrictions
The event passed to the aclrtDestroyEvent call must not be in use by other API calls.