aclrtQueryEventStatus

Description

As an extension API of aclrtQueryEvent, queries whether the events recorded by aclrtRecordEvent (in or not in the same thread as this API) have been executed. This API is synchronous.

Prototype

aclError aclrtQueryEventStatus(aclrtEvent event, aclrtEventRecordedStatus *status)

Parameters

Parameter

Input/Output

Description

event

Input

Event to query.

status

Output

Pointer to the event status.

Returns

0 on success; else, failure.