Lines Matching refs:_PyThreadState_Current
49 PyThreadState *_PyThreadState_Current = NULL; variable
299 if (tstate == _PyThreadState_Current) in PyThreadState_Delete()
313 PyThreadState *tstate = _PyThreadState_Current; in PyThreadState_DeleteCurrent()
317 _PyThreadState_Current = NULL; in PyThreadState_DeleteCurrent()
329 if (_PyThreadState_Current == NULL) in PyThreadState_Get()
332 return _PyThreadState_Current; in PyThreadState_Get()
339 PyThreadState *oldts = _PyThreadState_Current; in PyThreadState_Swap()
341 _PyThreadState_Current = newts; in PyThreadState_Swap()
370 if (_PyThreadState_Current == NULL) in PyThreadState_GetDict()
373 if (_PyThreadState_Current->dict == NULL) { in PyThreadState_GetDict()
375 _PyThreadState_Current->dict = d = PyDict_New(); in PyThreadState_GetDict()
379 return _PyThreadState_Current->dict; in PyThreadState_GetDict()
517 return tstate == _PyThreadState_Current; in PyThreadState_IsCurrent()