aclrtQueryEventWaitStatus

Description

Queries whether the stream receives a specified event after the aclrtStreamWaitEvent call. If multiple streams wait for the same event, the event status queried by this API call is complete only after all the streams receive the event. This API is synchronous.

Prototype

aclError aclrtQueryEventWaitStatus(aclrtEvent event, aclrtEventWaitStatus *status)

Parameters

Parameter

Input/Output

Description

event

Input

Event to query.

status

Output

Pointer to the event status.

Returns

0 on success; else, failure.