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

birkenfeld@users.sourceforge.net birkenfeld at users.sourceforge.net
Sat Jul 9 17:27:07 CEST 2005


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

Modified Files:
      Tag: release24-maint
	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.7.30.1
diff -u -d -r2.7 -r2.7.30.1
--- thread_wince.h	16 Oct 2001 21:13:49 -0000	2.7
+++ thread_wince.h	9 Jul 2005 15:27:05 -0000	2.7.30.1
@@ -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