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

Method setDestructorCallback

include/internal/CL/cl.hpp:3112–3122  ·  view source on GitHub ↗

! \brief Registers a callback function to be called when the memory object * is no longer needed. * * Wraps clSetMemObjectDestructorCallback(). * * Repeated calls to this function, for a given cl_mem value, will append * to the list of functions called (in reverse order) when memory object's * resources are freed and the memory object is deleted.

Source from the content-addressed store, hash-verified

3110 * value - not the Memory class instance.
3111 */
3112 cl_int setDestructorCallback(
3113 void (CL_CALLBACK * pfn_notify)(cl_mem, void *),
3114 void * user_data = NULL)
3115 {
3116 return detail::errHandler(
3117 ::clSetMemObjectDestructorCallback(
3118 object_,
3119 pfn_notify,
3120 user_data),
3121 __SET_MEM_OBJECT_DESTRUCTOR_CALLBACK_ERR);
3122 }
3123#endif
3124
3125};

Callers

nothing calls this directly

Calls 1

errHandlerFunction · 0.85

Tested by

no test coverage detected