diff options
author | Mark Hammond <mhammond@skippinet.com.au> | 2003-04-19 15:41:53 +0000 |
---|---|---|
committer | Mark Hammond <mhammond@skippinet.com.au> | 2003-04-19 15:41:53 +0000 |
commit | 8d98d2cb95ac37147a4de5a119869211e8351324 (patch) | |
tree | 8175d77139194bffa61b79d19544525927a13fc5 /Python/ceval.c | |
parent | e36b6900878b8715c37bfa241381dddb82cda386 (diff) | |
download | cpython-git-8d98d2cb95ac37147a4de5a119869211e8351324.tar.gz |
New PyGILState_ API - implements pep 311, from patch 684256.
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 080b3c16bc..3ea1bdc966 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -321,6 +321,8 @@ PyEval_AcquireThread(PyThreadState *tstate) { 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( |