! \brief Registers a user callback function for a specific command execution status. * * Wraps clSetEventCallback(). */
| 2926 | * Wraps clSetEventCallback(). |
| 2927 | */ |
| 2928 | cl_int setCallback( |
| 2929 | cl_int type, |
| 2930 | void (CL_CALLBACK * pfn_notify)(cl_event, cl_int, void *), |
| 2931 | void * user_data = NULL) |
| 2932 | { |
| 2933 | return detail::errHandler( |
| 2934 | ::clSetEventCallback( |
| 2935 | object_, |
| 2936 | type, |
| 2937 | pfn_notify, |
| 2938 | user_data), |
| 2939 | __SET_EVENT_CALLBACK_ERR); |
| 2940 | } |
| 2941 | #endif |
| 2942 | |
| 2943 | /*! \brief Blocks the calling thread until every event specified is complete. |
nothing calls this directly
no test coverage detected