ceval.c ... just a patch

Armin Steinhoff a-steinhoff at web.de
Fri Aug 2 21:43:47 CEST 2002


#ifdef WITH_THREAD
			if (interpreter_lock) {
				/* Give another thread a chance */

				if (PyThreadState_Swap(NULL) != tstate)
					Py_FatalError("ceval: tstate mix-up");
				PyThread_release_lock(interpreter_lock);

#ifdef WITH_STATIC_PRIORITIES
             sched_yield();
#endif				
				PyThread_acquire_lock(interpreter_lock, 1);
				if (PyThreadState_Swap(tstate) != NULL)
					Py_FatalError("ceval: orphan tstate");
			}
#endif

Any comments ??



More information about the Python-list mailing list