summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2005-07-09 15:27:05 (GMT)
committerGeorg Brandl <georg@python.org>2005-07-09 15:27:05 (GMT)
commit6108583dedeef7193852237a524213f30a5da9bf (patch)
tree635b840d90502ed30e0fcd79a5a709eaa344453e
parent412d5fab78c3de8c51d3904dfa8811b4f42c82cb (diff)
downloadcpython-6108583dedeef7193852237a524213f30a5da9bf.zip
cpython-6108583dedeef7193852237a524213f30a5da9bf.tar.gz
cpython-6108583dedeef7193852237a524213f30a5da9bf.tar.bz2
bug 1234979 addition
-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