Blocks until the actions corresponding to the event have completed.
| 211 | /// Blocks until the actions corresponding to the event have |
| 212 | /// completed. |
| 213 | void wait() const |
| 214 | { |
| 215 | cl_int ret = clWaitForEvents(1, &m_event); |
| 216 | if(ret != CL_SUCCESS){ |
| 217 | BOOST_THROW_EXCEPTION(opencl_error(ret)); |
| 218 | } |
| 219 | } |
| 220 | |
| 221 | #if defined(BOOST_COMPUTE_CL_VERSION_1_1) || defined(BOOST_COMPUTE_DOXYGEN_INVOKED) |
| 222 | /// Registers a function to be called when the event status changes to |
no test coverage detected