Home
last modified time | relevance | path

Searched refs:autoInterpreterState (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Python/
Dpystate.c39 static PyInterpreterState *autoInterpreterState = NULL; variable
303 if (autoInterpreterState && PyThread_get_key_value(autoTLSkey) == tstate) in PyThreadState_Delete()
318 if (autoInterpreterState && PyThread_get_key_value(autoTLSkey) == tstate) in PyThreadState_DeleteCurrent()
528 autoInterpreterState = i; in _PyGILState_Init()
539 autoInterpreterState = NULL; in _PyGILState_Fini()
553 if (!autoInterpreterState) in _PyGILState_NoteThreadState()
581 if (autoInterpreterState == NULL) in PyGILState_GetThisThreadState()
596 assert(autoInterpreterState); /* Py_Initialize() hasn't been called! */ in PyGILState_Ensure()
600 tcur = PyThreadState_New(autoInterpreterState); in PyGILState_Ensure()
/external/python/cpython3/Python/
Dpystate.c49 static PyInterpreterState *autoInterpreterState = NULL; variable
447 if (autoInterpreterState && PyThread_get_key_value(autoTLSkey) == tstate) in PyThreadState_Delete()
463 if (autoInterpreterState && PyThread_get_key_value(autoTLSkey) == tstate) in PyThreadState_DeleteCurrent()
718 autoInterpreterState = i; in _PyGILState_Init()
728 return autoInterpreterState; in _PyGILState_GetInterpreterStateUnsafe()
736 autoInterpreterState = NULL; in _PyGILState_Fini()
768 if (!autoInterpreterState) in _PyGILState_NoteThreadState()
796 if (autoInterpreterState == NULL) in PyGILState_GetThisThreadState()
829 assert(autoInterpreterState); /* Py_Initialize() hasn't been called! */ in PyGILState_Ensure()
838 tcur = PyThreadState_New(autoInterpreterState); in PyGILState_Ensure()