[Python-checkins] python/dist/src/Python thread_nt.h,2.23,2.24

birkenfeld@users.sourceforge.net birkenfeld at users.sourceforge.net
Sat Jul 9 00:26:15 CEST 2005


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5550/Python

Modified Files:
	thread_nt.h 
Log Message:
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.24
diff -u -d -r2.23 -r2.24
--- thread_nt.h	4 Jul 2003 04:40:45 -0000	2.23
+++ thread_nt.h	8 Jul 2005 22:26:12 -0000	2.24
@@ -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