Lines Matching refs:gilstate
46 runtime->gilstate.check_enabled = 1; in _PyRuntimeState_Init_impl()
51 runtime->gilstate.autoTSSkey = initial; in _PyRuntimeState_Init_impl()
633 if (_PyRuntime.gilstate.autoInterpreterState && in PyThreadState_Delete()
634 PyThread_tss_get(&_PyRuntime.gilstate.autoTSSkey) == tstate) in PyThreadState_Delete()
636 PyThread_tss_set(&_PyRuntime.gilstate.autoTSSkey, NULL); in PyThreadState_Delete()
650 if (_PyRuntime.gilstate.autoInterpreterState && in PyThreadState_DeleteCurrent()
651 PyThread_tss_get(&_PyRuntime.gilstate.autoTSSkey) == tstate) in PyThreadState_DeleteCurrent()
653 PyThread_tss_set(&_PyRuntime.gilstate.autoTSSkey, NULL); in PyThreadState_DeleteCurrent()
910 if (PyThread_tss_create(&_PyRuntime.gilstate.autoTSSkey) != 0) { in _PyGILState_Init()
913 _PyRuntime.gilstate.autoInterpreterState = i; in _PyGILState_Init()
914 assert(PyThread_tss_get(&_PyRuntime.gilstate.autoTSSkey) == NULL); in _PyGILState_Init()
923 return _PyRuntime.gilstate.autoInterpreterState; in _PyGILState_GetInterpreterStateUnsafe()
929 PyThread_tss_delete(&_PyRuntime.gilstate.autoTSSkey); in _PyGILState_Fini()
930 _PyRuntime.gilstate.autoInterpreterState = NULL; in _PyGILState_Fini()
954 PyThread_tss_delete(&_PyRuntime.gilstate.autoTSSkey); in _PyGILState_Reinit()
955 if (PyThread_tss_create(&_PyRuntime.gilstate.autoTSSkey) != 0) { in _PyGILState_Reinit()
962 PyThread_tss_set(&_PyRuntime.gilstate.autoTSSkey, (void *)tstate) != 0) in _PyGILState_Reinit()
979 if (!_PyRuntime.gilstate.autoInterpreterState) in _PyGILState_NoteThreadState()
994 if (PyThread_tss_get(&_PyRuntime.gilstate.autoTSSkey) == NULL) { in _PyGILState_NoteThreadState()
995 if ((PyThread_tss_set(&_PyRuntime.gilstate.autoTSSkey, (void *)tstate) in _PyGILState_NoteThreadState()
1010 if (_PyRuntime.gilstate.autoInterpreterState == NULL) in PyGILState_GetThisThreadState()
1012 return (PyThreadState *)PyThread_tss_get(&_PyRuntime.gilstate.autoTSSkey); in PyGILState_GetThisThreadState()
1023 if (!PyThread_tss_is_created(&_PyRuntime.gilstate.autoTSSkey)) { in PyGILState_Check()
1047 assert(_PyRuntime.gilstate.autoInterpreterState); in PyGILState_Ensure()
1049 tcur = (PyThreadState *)PyThread_tss_get(&_PyRuntime.gilstate.autoTSSkey); in PyGILState_Ensure()
1054 tcur = PyThreadState_New(_PyRuntime.gilstate.autoInterpreterState); in PyGILState_Ensure()
1091 &_PyRuntime.gilstate.autoTSSkey); in PyGILState_Release()