summaryrefslogtreecommitdiffstats
path: root/Python/thread_wince.h
diff options
context:
space:
mode:
Diffstat (limited to 'Python/thread_wince.h')
-rw-r--r--Python/thread_wince.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/thread_wince.h b/Python/thread_wince.h
index b5129b2..e16f5d1 100644
--- a/Python/thread_wince.h
+++ b/Python/thread_wince.h
@@ -140,13 +140,13 @@ int PyThread_acquire_lock(PyThread_type_lock aLock, int waitflag)
dprintf(("%ld: PyThread_acquire_lock(%p, %d) called\n", PyThread_get_thread_ident(),aLock, waitflag));
#ifndef DEBUG
- waitResult = WaitForSingleObject(aLock, (waitflag == 1 ? INFINITE : 0));
+ waitResult = WaitForSingleObject(aLock, (waitflag ? INFINITE : 0));
#else
/* To aid in debugging, we regularly wake up. This allows us to
break into the debugger */
while (TRUE) {
waitResult = WaitForSingleObject(aLock, waitflag ? 3000 : 0);
- if (waitflag==0 || (waitflag==1 && waitResult == WAIT_OBJECT_0))
+ if (waitflag==0 || (waitflag && waitResult == WAIT_OBJECT_0))
break;
}
#endif