Resets an event. Resets the event only after all tasks in the stream are completely executed. This API is asynchronous.
Resetting an event also resets the event status. The event status is recorded upon the aclrtRecordEvent API call. Therefore, insert the aclrtRecordEvent call prior to the aclrtResetEvent call.
API call sequence: aclrtCreateEvent --> aclrtRecordEvent --> aclrtResetEvent --> aclrtSynchronizeStream
aclError aclrtResetEvent(aclrtEvent event, aclrtStream stream)
Parameter |
Input/Output |
Description |
|---|---|---|
event |
Input |
Event to reset. |
stream |
Input |
Stream where the event is. |
0 on success; else, failure.