* A synchronization point that enqueues a barrier operation. * * Enqueues a barrier command which waits for either a list of events to complete, * or if the list is empty it waits for all commands previously enqueued in command_queue * to complete before it completes. This command blocks command execution, that is, any * following commands enqueued after it do not execu
| 6271 | * before this command to command_queue, have completed. |
| 6272 | */ |
| 6273 | cl_int enqueueBarrierWithWaitList( |
| 6274 | const VECTOR_CLASS<Event> *events = 0, |
| 6275 | Event *event = 0) |
| 6276 | { |
| 6277 | cl_event tmp; |
| 6278 | cl_int err = detail::errHandler( |
| 6279 | ::clEnqueueBarrierWithWaitList( |
| 6280 | object_, |
| 6281 | (events != NULL) ? (cl_uint) events->size() : 0, |
| 6282 | (events != NULL && events->size() > 0) ? (cl_event*) &events->front() : NULL, |
| 6283 | (event != NULL) ? &tmp : NULL), |
| 6284 | __ENQUEUE_BARRIER_WAIT_LIST_ERR); |
| 6285 | |
| 6286 | if (event != NULL && err == CL_SUCCESS) |
| 6287 | *event = tmp; |
| 6288 | |
| 6289 | return err; |
| 6290 | } |
| 6291 | |
| 6292 | /** |
| 6293 | * Enqueues a command to indicate with which device a set of memory objects |
nothing calls this directly
no test coverage detected