aclrtSynchronizeEvent

Description

Blocks the current thread until all tasks captured in an event are completed. For more details, see aclrtRecordEvent.

Prototype

aclError aclrtSynchronizeEvent(aclrtEvent event)

Parameters

Parameter

Input/Output

Description

event

Input

Event to wait on.

Returns

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

See Also

For the API call example, see Sample Code for Event Synchronization.