Lines Matching refs:gil
197 return gil_created(&_PyRuntime.ceval.gil); in PyEval_ThreadsInitialized()
205 struct _gil_runtime_state *gil = &ceval->gil; in PyEval_InitThreads() local
206 if (gil_created(gil)) { in PyEval_InitThreads()
211 create_gil(gil); in PyEval_InitThreads()
225 struct _gil_runtime_state *gil = &ceval->gil; in _PyEval_FiniThreads() local
226 if (!gil_created(gil)) { in _PyEval_FiniThreads()
230 destroy_gil(gil); in _PyEval_FiniThreads()
231 assert(!gil_created(gil)); in _PyEval_FiniThreads()
315 assert(gil_created(&ceval->gil)); in PyEval_AcquireThread()
347 if (!gil_created(&ceval->gil)) { in _PyEval_ReInitThreads()
350 recreate_gil(&ceval->gil); in _PyEval_ReInitThreads()
382 assert(gil_created(&ceval->gil)); in PyEval_SaveThread()
396 assert(gil_created(&ceval->gil)); in PyEval_RestoreThread()
649 _gil_initialize(&state->gil); in _PyEval_Initialize()