/// <summary> /// /// </summary> protected void HookNotifier() { statusNotify = new OpenCLEventCallback(StatusNotify); OpenCLErrorCode error = CL11.SetEventCallback(Handle, (int)OpenCLCommandExecutionStatus.Complete, statusNotify, IntPtr.Zero); OpenCLException.ThrowOnError(error); }
public extern static OpenCLErrorCode SetEventCallback( CLEventHandle @event, Int32 command_exec_callback_type, OpenCLEventCallback pfn_notify, IntPtr user_data);