Enqueues a wait for a specific event or a list of events to complete before any future commands queued in the command-queue are executed.
cl_int
clEnqueueWaitForEvents
(
| cl_command_queue command_queue, |
cl_uint num_events, | |
const cl_event *event_list) |
command_queue
A valid command-queue.
num_events
Specifies the number of events given by event_list
.
event_list
Events specified in event_list
act as synchronization points. The context associated
with events in event_list
and command_queue
must be the same.
Each event in event_list
must be a valid event object returned by a previous call
to the following:
Returns CL_SUCCESS if the function was successfully executed, or one of the errors below:
command_queue
is not a valid command-queue.
command_queue
and events in event_list
are not the same.
num_events
is zero or
event_list
is NULL.
event_list
are not valid events.
clEnqueueNDRangeKernel, clEnqueueTask, clEnqueueNativeKernel, clEnqueueReadBuffer, clEnqueueWriteBuffer, clEnqueueMapBuffer, clEnqueueReadImage, clEnqueueWriteImage, clEnqueueMapImage, clEnqueueCopyBuffer, clEnqueueCopyImage, clEnqueueCopyBufferToImage, clEnqueueCopyImageToBuffer, clEnqueueMarker