FutureCancel() public static method

public static FutureCancel ( FutureHandle futureHandle ) : void
futureHandle FutureHandle
return void
コード例 #1
0
        protected override void CancelHandles()
        {
            var handle = m_handle;

            //REVIEW: there is a possibility of a race condition with Dispose() that could potentially call FutureDestroy(handle) at the same time (not verified)
            if (handle != null && !handle.IsClosed && !handle.IsInvalid)
            {
                FdbNative.FutureCancel(handle);
            }
        }
コード例 #2
0
 private static void CancelHandles(FutureHandle[] handles)
 {
     if (handles != null)
     {
         foreach (var handle in handles)
         {
             if (handle != null && !handle.IsClosed && !handle.IsInvalid)
             {
                 //REVIEW: there is a possibility of a race condition with Dispose() that could potentially call FutureDestroy(handle) at the same time (not verified)
                 FdbNative.FutureCancel(handle);
             }
         }
     }
 }