MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / setCallback

Method setCallback

include/internal/CL/cl.hpp:2928–2940  ·  view source on GitHub ↗

! \brief Registers a user callback function for a specific command execution status. * * Wraps clSetEventCallback(). */

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

errHandlerFunction · 0.85

Tested by

no test coverage detected