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); } }
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); } } } }