diff options
Diffstat (limited to 'src/platform/windows/win_thread.c')
| -rw-r--r-- | src/platform/windows/win_thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platform/windows/win_thread.c b/src/platform/windows/win_thread.c index 631883fc..4d47f18e 100644 --- a/src/platform/windows/win_thread.c +++ b/src/platform/windows/win_thread.c @@ -95,7 +95,7 @@ nni_plat_cv_until(nni_plat_cv *cv, nni_time until) msec = 0; } else { // times are in usec, but win32 wants millis - msec = (until - now)/1000; + msec = ((until - now) + 999)/1000; } ok = SleepConditionVariableCS(&cv->cv, cv->cs, msec); |
