[Python-checkins] python/dist/src/Python thread_wince.h,2.7,2.8

birkenfeld@users.sourceforge.net birkenfeld at users.sourceforge.net
Sat Jul 9 17:26:35 CEST 2005


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

Modified Files:
	thread_wince.h 
Log Message:
bug 1234979 addition



Index: thread_wince.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/thread_wince.h,v
retrieving revision 2.7
retrieving revision 2.8
diff -u -d -r2.7 -r2.8
--- thread_wince.h	16 Oct 2001 21:13:49 -0000	2.7
+++ thread_wince.h	9 Jul 2005 15:26:33 -0000	2.8
@@ -140,13 +140,13 @@
     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



More information about the Python-checkins mailing list