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