Lines Matching refs:gilstate
453 struct _gilstate_runtime_state *gilstate = &tstate->interp->runtime->gilstate; in PyEval_AcquireThread() local
455 (void)_PyThreadState_Swap(gilstate, tstate); in PyEval_AcquireThread()
457 if (_PyThreadState_Swap(gilstate, tstate) != NULL) { in PyEval_AcquireThread()
469 PyThreadState *new_tstate = _PyThreadState_Swap(&runtime->gilstate, NULL); in PyEval_ReleaseThread()
525 PyThreadState *tstate = _PyThreadState_Swap(&runtime->gilstate, old_tstate); in PyEval_SaveThread()
527 PyThreadState *tstate = _PyThreadState_Swap(&runtime->gilstate, NULL); in PyEval_SaveThread()
549 struct _gilstate_runtime_state *gilstate = &tstate->interp->runtime->gilstate; in PyEval_RestoreThread() local
550 _PyThreadState_Swap(gilstate, tstate); in PyEval_RestoreThread()
1182 if (_PyThreadState_Swap(&runtime->gilstate, NULL) != tstate) { in eval_frame_handle_pending()
1192 (void)_PyThreadState_Swap(&runtime->gilstate, tstate); in eval_frame_handle_pending()
1194 if (_PyThreadState_Swap(&runtime->gilstate, tstate) != NULL) { in eval_frame_handle_pending()