[Python-checkins] python/dist/src/Python pystate.c,2.40,2.41

mwh@users.sourceforge.net mwh at users.sourceforge.net
Thu Jun 16 13:35:15 CEST 2005


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

Modified Files:
	pystate.c 
Log Message:
You can have more than one thread state for a thread if they
correspond to different interpreters (I hope, please revert if this is
wrong :).


Index: pystate.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/pystate.c,v
retrieving revision 2.40
retrieving revision 2.41
diff -u -d -r2.40 -r2.41
--- pystate.c	18 Apr 2005 08:46:17 -0000	2.40
+++ pystate.c	16 Jun 2005 11:35:00 -0000	2.41
@@ -289,7 +289,7 @@
 #if defined(Py_DEBUG) && defined(WITH_THREAD)
 	if (new) {
 		PyThreadState *check = PyGILState_GetThisThreadState();
-		if (check && check != new)
+		if (check && check->interp == new->interp && check != new)
 			Py_FatalError("Invalid thread state for this thread");
 	}
 #endif



More information about the Python-checkins mailing list