! \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.
| 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 | }; |
nothing calls this directly
no test coverage detected