From 5d7d45f0e549f0935c2e8d4f94f629014879b213 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Thu, 16 Apr 2020 19:14:57 +0300 Subject: [PATCH] mdbx-test: minor cleanup osal_delay() for Windows. Change-Id: If9c57cc1eba4c873be5d9176f7f6745c2363a0d6 --- test/osal-windows.cc | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/test/osal-windows.cc b/test/osal-windows.cc index 713e2de8..9bde047a 100644 --- a/test/osal-windows.cc +++ b/test/osal-windows.cc @@ -1,5 +1,5 @@ /* - * Copyright 2017-2019 Leonid Yuriev + * Copyright 2017-2020 Leonid Yuriev * and other libmdbx authors: please see AUTHORS file. * All rights reserved. * @@ -424,16 +424,10 @@ void osal_udelay(unsigned us) { static unsigned threshold_us; if (threshold_us == 0) { -#if 1 unsigned timeslice_ms = 1; while (timeBeginPeriod(timeslice_ms) == TIMERR_NOCANDO) ++timeslice_ms; threshold_us = timeslice_ms * 1500u; -#else - ULONGLONG InterruptTimePrecise_100ns; - QueryInterruptTimePrecise(&InterruptTimePrecise_100ns); - threshold_us = InterruptTimePrecise_100ns / 5; -#endif assert(threshold_us > 0); }