[−][src]Function opencl3::memory::set_mem_object_destructor_callback
pub fn set_mem_object_destructor_callback(
memobj: *mut c_void,
pfn_notify: extern "C" fn(*mut c_void, *mut c_void),
user_data: *mut c_void
) -> Result<(), i32>
Register a callback function with an OpenCL memory object that is called when the
memory object is destroyed.
Calls clSetMemObjectDestructorCallback.
memobj
- the OpenCL memory object.pfn_notify
- callback function to be registered by the application.user_data
- passed as the user_data argument when pfn_notify is called.
returns an empty Result or the error code from the OpenCL C API function.