! \brief Blocks the calling thread until every event specified is complete. * * Wraps clWaitForEvents(). */
| 3609 | * Wraps clWaitForEvents(). |
| 3610 | */ |
| 3611 | inline static cl_int |
| 3612 | WaitForEvents(const vector<Event>& events) |
| 3613 | { |
| 3614 | return detail::errHandler( |
| 3615 | ::clWaitForEvents( |
| 3616 | (cl_uint) events.size(), (events.size() > 0) ? (cl_event*)&events.front() : nullptr), |
| 3617 | __WAIT_FOR_EVENTS_ERR); |
| 3618 | } |
| 3619 | |
| 3620 | /*! \brief Class interface for cl_mem. |
| 3621 | * |
nothing calls this directly
no test coverage detected