Home
last modified time | relevance | path

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

/third_party/python/Python/
Dpystate.c387 _PyThreadState_Swap(&runtime->gilstate, NULL); in PyInterpreterState_Delete()
430 PyThreadState *tstate = _PyThreadState_Swap(gilstate, NULL); in _PyInterpreterState_DeleteExceptMain()
460 _PyThreadState_Swap(gilstate, tstate); in _PyInterpreterState_DeleteExceptMain()
572 PyThreadState *save_tstate = _PyThreadState_Swap(gilstate, tstate); in _PyInterpreterState_IDDecref()
574 _PyThreadState_Swap(gilstate, save_tstate); in _PyInterpreterState_IDDecref()
1021 _PyThreadState_Swap(struct _gilstate_runtime_state *gilstate, PyThreadState *newts) in _PyThreadState_Swap() function
1055 return _PyThreadState_Swap(&_PyRuntime.gilstate, newts); in PyThreadState_Swap()
1687 save_tstate = _PyThreadState_Swap(gilstate, tstate); in _call_in_interpreter()
1694 _PyThreadState_Swap(gilstate, save_tstate); in _call_in_interpreter()
Dceval.c455 (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()
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()
/third_party/python/Include/internal/
Dpycore_pystate.h129 PyAPI_FUNC(PyThreadState *) _PyThreadState_Swap(