aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor_windows.h
diff options
context:
space:
mode:
Diffstat (limited to 'executor/executor_windows.h')
-rw-r--r--executor/executor_windows.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/executor/executor_windows.h b/executor/executor_windows.h
index 5b788e095..b29095011 100644
--- a/executor/executor_windows.h
+++ b/executor/executor_windows.h
@@ -56,14 +56,14 @@ bool event_isset(event_t* ev)
return res;
}
-bool event_timedwait(event_t* ev, uint64_t timeout_ms)
+bool event_timedwait(event_t* ev, uint64 timeout_ms)
{
EnterCriticalSection(&ev->cs);
- uint64_t start = current_time_ms();
+ uint64 start = current_time_ms();
for (;;) {
if (ev->state)
break;
- uint64_t now = current_time_ms();
+ uint64 now = current_time_ms();
if (now - start > timeout_ms)
break;
SleepConditionVariableCS(&ev->cv, &ev->cs, timeout_ms - (now - start));