private void Callback(IntPtr evt, EventCommandExecutionStatus eventCommandExecStatus, IntPtr userData) { TaskCompletionSource.SetResult(_result); _handle.Free(); Api.EventApi.clReleaseEvent(evt).ThrowOnError(); }
public static extern OpenClErrorCode clSetEventCallback(IntPtr evt, EventCommandExecutionStatus commandExecCallbackType, IntPtr pfnEventNotify, IntPtr userData);
OpenClErrorCode IEventApi.clSetEventCallback(IntPtr evt, EventCommandExecutionStatus commandExecCallbackType, IntPtr pfnEventNotify, IntPtr userData) { return(clSetEventCallback(evt, commandExecCallbackType, pfnEventNotify, userData)); }
public OpenClErrorCode clSetEventCallback(IntPtr evt, EventCommandExecutionStatus commandExecCallbackType, IntPtr pfnEventNotify, IntPtr userData) { return(clSetEventCallbackReturn ?? OpenClErrorCode.Success); }