Library/ManagedCuda/CudaEvent.cs
/// <summary>
/// Waits until the event has actually been recorded. If <see cref="Record()"/> has been called on this event, the function returns
/// <see cref="CUResult.ErrorInvalidValue"/>. Waiting for an event that was created with the <see cref="CUEventFlags.BlockingSync"/>
/// flag will cause the calling CPU thread to block until the event has actually been recorded. <para/>
/// If <see cref="Record()"/> has previously been called and the event has not been recorded yet, this function throws <see cref="CUResult.ErrorInvalidValue"/>.
/// </summary>
Waits until the event has actually been recorded. If  has been called on this event, the function returns
. Waiting for an event that was created with the
flag will cause the calling CPU thread to block until the event has actually been recorded.
If  has previously been called and the event has not been recorded yet, this function throws .
Waits until the event has actually been recorded . If has been called on this event the function returns . Waiting for an event that was created with the flag will cause the calling CPU thread to block until the event has actually been recorded . If has previously been called and the event has not been recorded yet this function throws .
public void Synchronize()
        {
            res = DriverAPINativeMethods.Events.cuEventSynchronize(_event);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuEventSynchronize", res));
            if (res != CUResult.Success) throw new CudaException(res);
        }
public void Synchronize ( ) { res = DriverAPINativeMethods . Events . cuEventSynchronize ( _event ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; }
Waits until the event has actually been recorded.
Waits until the event has actually been recorded .