diff options
author | Michael W. Hudson <mwh@python.net> | 2005-06-16 11:35:00 +0000 |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2005-06-16 11:35:00 +0000 |
commit | 4631ebb43a2d4f1b4156d81dfbb3828dca7ff00b (patch) | |
tree | 8079fa6ec7ee287dd7f2862e619d4de5a483e599 /Python/pystate.c | |
parent | 6d87d667f8a410c11be01327204759a3ad9cfb99 (diff) | |
download | cpython-4631ebb43a2d4f1b4156d81dfbb3828dca7ff00b.tar.gz |
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 :).
Diffstat (limited to 'Python/pystate.c')
-rw-r--r-- | Python/pystate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pystate.c b/Python/pystate.c index abca8ddfdf..e2cf7c564d 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -289,7 +289,7 @@ PyThreadState_Swap(PyThreadState *new) #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 |