Home
last modified time | relevance | path

Searched refs:PyThreadState_Swap (Results 1 – 20 of 20) sorted by relevance

/external/tensorflow/tensorflow/python/profiler/internal/
Dpython_hooks.cc329 PyThreadState_Swap(next_thread); in SetProfilerInAllThreads()
333 PyThreadState_Swap(curr_thread); in SetProfilerInAllThreads()
341 PyThreadState_Swap(next_thread); in ClearProfilerInAllThreads()
345 PyThreadState_Swap(curr_thread); in ClearProfilerInAllThreads()
/external/python/cpython3/Include/
Dpystate.h83 PyAPI_FUNC(PyThreadState *) PyThreadState_Swap(PyThreadState *);
/external/python/cpython2/Include/
Dpystate.h120 PyAPI_FUNC(PyThreadState *) PyThreadState_Swap(PyThreadState *);
/external/python/cpython3/Modules/
D_xxsubinterpretersmodule.c1948 save_tstate = PyThreadState_Swap(tstate); in _run_script_in_interpreter()
1957 PyThreadState_Swap(save_tstate); in _run_script_in_interpreter()
2013 PyThreadState *save_tstate = PyThreadState_Swap(NULL); in interp_create()
2016 PyThreadState_Swap(save_tstate); in interp_create()
2028 save_tstate = PyThreadState_Swap(tstate); in interp_create()
2030 PyThreadState_Swap(save_tstate); in interp_create()
2081 PyThreadState *save_tstate = PyThreadState_Swap(tstate); in interp_destroy()
2083 PyThreadState_Swap(save_tstate); in interp_destroy()
D_testcapimodule.c3480 PyThreadState_Swap(NULL); in run_in_subinterp()
3487 PyThreadState_Swap(mainstate); in run_in_subinterp()
3494 PyThreadState_Swap(mainstate); in run_in_subinterp()
/external/python/cpython2/Python/
Dpythonrun.c210 (void) PyThreadState_Swap(tstate); in Py_InitializeEx()
525 PyThreadState_Swap(NULL); in Py_Finalize()
604 save_tstate = PyThreadState_Swap(tstate); in Py_NewInterpreter()
641 PyThreadState_Swap(save_tstate); in Py_NewInterpreter()
674 PyThreadState_Swap(NULL); in Py_EndInterpreter()
Dpystate.c337 PyThreadState_Swap(PyThreadState *newts) in PyThreadState_Swap() function
Dceval.c278 if (PyThreadState_Swap(tstate) != NULL) in PyEval_AcquireThread()
288 if (PyThreadState_Swap(NULL) != tstate) in PyEval_ReleaseThread()
341 PyThreadState *tstate = PyThreadState_Swap(NULL); in PyEval_SaveThread()
363 PyThreadState_Swap(tstate); in PyEval_RestoreThread()
1121 if (PyThreadState_Swap(NULL) != tstate) in PyEval_EvalFrameEx()
1129 if (PyThreadState_Swap(tstate) != NULL) in PyEval_EvalFrameEx()
/external/python/cpython2/PC/os2vacpp/
Dpython.def383 PyThreadState_Swap
/external/python/pybind11/tests/test_embed/
Dtest_interpreter.cpp195 PyThreadState_Swap(main_tstate);
/external/python/cpython3/Python/
Dpylifecycle.c564 (void) PyThreadState_Swap(tstate); in pycore_create_interpreter()
1564 PyThreadState *save_tstate = PyThreadState_Swap(tstate); in new_interpreter()
1610 PyThreadState_Swap(save_tstate); in new_interpreter()
Dpystate.c991 PyThreadState_Swap(PyThreadState *newts) in PyThreadState_Swap() function
/external/python/cpython3/Programs/
D_testembed.c68 PyThreadState_Swap(NULL); in test_repeated_init_and_subinterpreters()
76 PyThreadState_Swap(mainstate); in test_repeated_init_and_subinterpreters()
/external/python/cpython3/PC/
Dpython3.def574 PyThreadState_Swap=python39.PyThreadState_Swap
/external/python/cpython2/PC/os2emx/
Dpython27.def1038 "PyThreadState_Swap"
/external/python/cpython2/Doc/data/
Drefcounts.dat1356 PyThreadState_Swap:PyThreadState*:::
1357 PyThreadState_Swap:PyThreadState*:tstate::
/external/python/cpython3/Doc/data/
Drefcounts.dat2206 PyThreadState_Swap:PyThreadState*:::
2207 PyThreadState_Swap:PyThreadState*:tstate::
/external/python/cpython2/Doc/c-api/
Dinit.rst590 .. c:function:: PyThreadState* PyThreadState_Swap(PyThreadState *tstate)
815 :c:func:`PyThreadState_Swap` function. You can create and destroy them
/external/python/cpython3/Doc/c-api/
Dinit.rst905 .. c:function:: PyThreadState* PyThreadState_Swap(PyThreadState *tstate)
1274 You can switch between sub-interpreters using the :c:func:`PyThreadState_Swap`
/external/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/
DScriptInterpreterPython.cpp1033 PyThreadState_Swap(state); in Interrupt()