! \brief Blocks the calling thread until this event completes. * * Wraps clWaitForEvents(). */
| 2914 | * Wraps clWaitForEvents(). |
| 2915 | */ |
| 2916 | cl_int wait() const |
| 2917 | { |
| 2918 | return detail::errHandler( |
| 2919 | ::clWaitForEvents(1, &object_), |
| 2920 | __WAIT_FOR_EVENTS_ERR); |
| 2921 | } |
| 2922 | |
| 2923 | #if defined(CL_VERSION_1_1) |
| 2924 | /*! \brief Registers a user callback function for a specific command execution status. |