aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornulano <nulano@nulano.eu>2020-07-24 00:32:08 +0200
committernulano <nulano@nulano.eu>2020-07-24 00:32:08 +0200
commit60a1e2591b196ac22410e4785dfcf5696d970153 (patch)
tree2eff68248ec6939415d848729a3d29c98eebbf78 /rpython/translator
parentGoes with the previous check-in. See a243e4e0b21c (diff)
downloadpypy-60a1e2591b196ac22410e4785dfcf5696d970153.tar.gz
pypy-60a1e2591b196ac22410e4785dfcf5696d970153.tar.bz2
pypy-60a1e2591b196ac22410e4785dfcf5696d970153.zip
initialize lock timeout on windows if timeout is infinite
Diffstat (limited to 'rpython/translator')
-rw-r--r--rpython/translator/c/src/thread_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpython/translator/c/src/thread_nt.c b/rpython/translator/c/src/thread_nt.c
index 148260d46f..d1c26880b9 100644
--- a/rpython/translator/c/src/thread_nt.c
+++ b/rpython/translator/c/src/thread_nt.c
@@ -191,7 +191,7 @@ RPyThreadAcquireLockTimed(struct RPyOpaque_ThreadLock *lock,
/* Fow now, intr_flag does nothing on Windows, and lock acquires are
* uninterruptible. */
RPyLockStatus success;
- RPY_TIMEOUT_T milliseconds;
+ RPY_TIMEOUT_T milliseconds = -1;
if (microseconds >= 0) {
milliseconds = microseconds / 1000;