To enqueue a wait for a specific event or a list of events to complete before any future commands queued in a command-queue are executed, call the function
const cl_event* event_list);
|clEnqueueWaitForEvents is deprecated by version 1.2.
command_queue is a valid host command-queue.
event_list and num_events specify events that need to complete before this particular command can be executed.
The events specified in event_list act as synchronization points. The context associated with events in event_list and command_queue must be the same. The memory associated with event_list can be reused or freed after the function returns.
CL_SUCCESS if the function is successfully
Otherwise, it returns one of the following errors:
CL_INVALID_if command_queue is not a valid host command-queue.
CL_INVALID_if context associated with command_queue and events in event_list are not the same.
CL_INVALID_if num_events is 0 or event_list is
CL_OUT_if there is a failure to allocate resources required by the OpenCL implementation on the device.
CL_OUT_if there is a failure to allocate resources required by the OpenCL implementation on the host.
OF_ HOST_ MEMORY
For more information, see the OpenCL Specification
This page is extracted from the OpenCL Specification. Fixes and changes should be made to the Specification, not directly.