Mercurial > cpython-lru_cache-weakref
diff Python/ceval.c @ 28694:a4154dd5939a legacy-trunk
New PyGILState_ API - implements pep 311, from patch 684256.
| author | Mark Hammond <mhammond@skippinet.com.au> |
|---|---|
| date | Sat, 19 Apr 2003 15:41:53 +0000 |
| parents | 78395e5b4782 |
| children | ab4fbf8ebab3 |
line wrap: on
line diff
--- a/Python/ceval.c Sat Apr 19 15:38:47 2003 +0000 +++ b/Python/ceval.c Sat Apr 19 15:41:53 2003 +0000 @@ -321,6 +321,8 @@ { if (tstate == NULL) Py_FatalError("PyEval_AcquireThread: NULL new thread state"); + /* Check someone has called PyEval_InitThreads() to create the lock */ + assert(interpreter_lock); PyThread_acquire_lock(interpreter_lock, 1); if (PyThreadState_Swap(tstate) != NULL) Py_FatalError(
