Lines Matching refs:interpreter_lock
238 static PyThread_type_lock interpreter_lock = 0; /* This is the GIL */ variable
245 return interpreter_lock != 0; in PyEval_ThreadsInitialized()
251 if (interpreter_lock) in PyEval_InitThreads()
253 interpreter_lock = PyThread_allocate_lock(); in PyEval_InitThreads()
254 PyThread_acquire_lock(interpreter_lock, 1); in PyEval_InitThreads()
261 PyThread_acquire_lock(interpreter_lock, 1); in PyEval_AcquireLock()
267 PyThread_release_lock(interpreter_lock); in PyEval_ReleaseLock()
276 assert(interpreter_lock); in PyEval_AcquireThread()
277 PyThread_acquire_lock(interpreter_lock, 1); in PyEval_AcquireThread()
290 PyThread_release_lock(interpreter_lock); in PyEval_ReleaseThread()
304 if (!interpreter_lock) in PyEval_ReInitThreads()
310 interpreter_lock = PyThread_allocate_lock(); in PyEval_ReInitThreads()
312 PyThread_acquire_lock(interpreter_lock, 1); in PyEval_ReInitThreads()
345 if (interpreter_lock) in PyEval_SaveThread()
346 PyThread_release_lock(interpreter_lock); in PyEval_SaveThread()
357 if (interpreter_lock) { in PyEval_RestoreThread()
359 PyThread_acquire_lock(interpreter_lock, 1); in PyEval_RestoreThread()
1118 if (interpreter_lock) { in PyEval_EvalFrameEx()
1123 PyThread_release_lock(interpreter_lock); in PyEval_EvalFrameEx()
1127 PyThread_acquire_lock(interpreter_lock, 1); in PyEval_EvalFrameEx()