summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2005-07-09 15:26:33 (GMT)
committerGeorg Brandl <georg@python.org>2005-07-09 15:26:33 (GMT)
commit9a3240e8e6ef6438d15756c39ee34f4f01c6a563 (patch)
tree01a93bd966009bfca23969d46e99ae60a527821d /Python
parentaf410b510db2ecee4369ab217692f15bb3be85bc (diff)
downloadcpython-9a3240e8e6ef6438d15756c39ee34f4f01c6a563.zip
cpython-9a3240e8e6ef6438d15756c39ee34f4f01c6a563.tar.gz
cpython-9a3240e8e6ef6438d15756c39ee34f4f01c6a563.tar.bz2
bug 1234979 addition
Diffstat (limited to 'Python')
-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