[Python-checkins] python/dist/src/Python thread_nt.h, 2.23, 2.23.10.1
birkenfeld@users.sourceforge.net
birkenfeld at users.sourceforge.net
Sat Jul 9 00:25:50 CEST 2005
Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5062/Python
Modified Files:
Tag: release24-maint
thread_nt.h
Log Message:
backport bug [ 1234979 ] Lock.acquire treats only 1 as True
Index: thread_nt.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/thread_nt.h,v
retrieving revision 2.23
retrieving revision 2.23.10.1
diff -u -d -r2.23 -r2.23.10.1
--- thread_nt.h 4 Jul 2003 04:40:45 -0000 2.23
+++ thread_nt.h 8 Jul 2005 22:25:17 -0000 2.23.10.1
@@ -299,7 +299,7 @@
dprintf(("%ld: PyThread_acquire_lock(%p, %d) called\n", PyThread_get_thread_ident(),aLock, waitflag));
- success = aLock && EnterNonRecursiveMutex((PNRMUTEX) aLock, (waitflag == 1 ? INFINITE : 0)) == WAIT_OBJECT_0 ;
+ success = aLock && EnterNonRecursiveMutex((PNRMUTEX) aLock, (waitflag ? INFINITE : 0)) == WAIT_OBJECT_0 ;
dprintf(("%ld: PyThread_acquire_lock(%p, %d) -> %d\n", PyThread_get_thread_ident(),aLock, waitflag, success));
More information about the Python-checkins
mailing list