! \brief Blocks the calling thread until every event specified is complete. * * Wraps clWaitForEvents(). */
| 3549 | * Wraps clWaitForEvents(). |
| 3550 | */ |
| 3551 | static cl_int |
| 3552 | waitForEvents(const vector<Event>& events) |
| 3553 | { |
| 3554 | static_assert(sizeof(cl::Event) == sizeof(cl_event), |
| 3555 | "Size of cl::Event must be equal to size of cl_event"); |
| 3556 | |
| 3557 | return detail::errHandler( |
| 3558 | ::clWaitForEvents( |
| 3559 | (cl_uint) events.size(), (events.size() > 0) ? (cl_event*)&events.front() : nullptr), |
| 3560 | __WAIT_FOR_EVENTS_ERR); |
| 3561 | } |
| 3562 | }; |
| 3563 | |
| 3564 | #if CL_HPP_TARGET_OPENCL_VERSION >= 110 |
nothing calls this directly
no test coverage detected