Home
last modified time | relevance | path

Searched refs:_PyThreadState_Swap (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython3/Python/
Dpystate.c344 _PyThreadState_Swap(&runtime->gilstate, NULL); in PyInterpreterState_Delete()
386 PyThreadState *tstate = _PyThreadState_Swap(gilstate, NULL); in _PyInterpreterState_DeleteExceptMain()
416 _PyThreadState_Swap(gilstate, tstate); in _PyInterpreterState_DeleteExceptMain()
525 PyThreadState *save_tstate = _PyThreadState_Swap(gilstate, tstate); in _PyInterpreterState_IDDecref()
527 _PyThreadState_Swap(gilstate, save_tstate); in _PyInterpreterState_IDDecref()
966 _PyThreadState_Swap(struct _gilstate_runtime_state *gilstate, PyThreadState *newts) in _PyThreadState_Swap() function
993 return _PyThreadState_Swap(&_PyRuntime.gilstate, newts); in PyThreadState_Swap()
1546 save_tstate = _PyThreadState_Swap(gilstate, tstate); in _call_in_interpreter()
1553 _PyThreadState_Swap(gilstate, save_tstate); in _call_in_interpreter()
Dceval.c388 if (_PyThreadState_Swap(gilstate, tstate) != NULL) { in PyEval_AcquireThread()
399 PyThreadState *new_tstate = _PyThreadState_Swap(&runtime->gilstate, NULL); in PyEval_ReleaseThread()
452 PyThreadState *tstate = _PyThreadState_Swap(&runtime->gilstate, NULL); in PyEval_SaveThread()
470 _PyThreadState_Swap(gilstate, tstate); in PyEval_RestoreThread()
879 if (_PyThreadState_Swap(&runtime->gilstate, NULL) != tstate) { in eval_frame_handle_pending()
888 if (_PyThreadState_Swap(&runtime->gilstate, tstate) != NULL) { in eval_frame_handle_pending()
/external/python/cpython3/Include/internal/
Dpycore_pystate.h117 PyAPI_FUNC(PyThreadState *) _PyThreadState_Swap(