Home
last modified time | relevance | path

Searched refs:_PyRuntime (Results 1 – 22 of 22) sorted by relevance

/external/python/cpython3/Include/internal/
Dpycore_pystate.h20 return (thread == _PyRuntime.main_thread); in _Py_IsMainThread()
29 return (tstate->interp == _PyRuntime.interpreters.main); in _Py_IsMainInterpreter()
37 return (_Py_IsMainThread() && interp == _PyRuntime.interpreters.main); in _Py_ThreadCanHandleSignals()
70 return _PyRuntimeState_GetThreadState(&_PyRuntime); in _PyThreadState_GET()
Dpycore_runtime.h115 PyAPI_DATA(_PyRuntimeState) _PyRuntime;
/external/python/cpython3/Python/
Dpystate.c214 _PyRuntimeState *runtime = &_PyRuntime; in PyInterpreterState_New()
466 _PyRuntimeState *runtime = &_PyRuntime; in _PyInterpreterState_LookUpID()
514 struct _gilstate_runtime_state *gilstate = &_PyRuntime.gilstate; in _PyInterpreterState_IDDecref()
901 struct _gilstate_runtime_state *gilstate = &_PyRuntime.gilstate; in PyThreadState_DeleteCurrent()
993 return _PyThreadState_Swap(&_PyRuntime.gilstate, newts); in PyThreadState_Swap()
1064 _PyRuntimeState *runtime = &_PyRuntime; in PyThreadState_SetAsyncExc()
1106 return _PyRuntime.interpreters.head; in PyInterpreterState_Head()
1112 return _PyRuntime.interpreters.main; in PyInterpreterState_Main()
1199 struct _gilstate_runtime_state *gilstate = &_PyRuntime.gilstate; in PyThreadState_IsCurrent()
1236 return _PyRuntime.gilstate.autoInterpreterState; in _PyGILState_GetInterpreterStateUnsafe()
[all …]
Dpylifecycle.c65 _PyRuntimeState _PyRuntime = _PyRuntimeState_INIT; variable
82 return _PyRuntimeState_Init(&_PyRuntime); in _PyRuntime_Initialize()
88 _PyRuntimeState_Fini(&_PyRuntime); in _PyRuntime_Finalize()
95 return _PyRuntimeState_GetFinalizing(&_PyRuntime) != NULL; in _Py_IsFinalizing()
119 return _PyRuntime.core_initialized; in _Py_IsCoreInitialized()
125 return _PyRuntime.initialized; in Py_IsInitialized()
790 _PyRuntimeState *runtime = &_PyRuntime; in _Py_PreInitializeFromPyArgv()
857 _PyRuntimeState *runtime = &_PyRuntime; in _Py_PreInitializeFromConfig()
1112 _PyRuntimeState *runtime = &_PyRuntime; in _Py_InitializeMain()
1131 _PyRuntimeState *runtime = &_PyRuntime; in Py_InitializeFromConfig()
[all …]
Dceval_gil.h200 PyThreadState *finalizing = _PyRuntimeState_GetFinalizing(&_PyRuntime); in tstate_must_exit()
323 struct _gil_runtime_state *gil = &_PyRuntime.ceval.gil; in _PyEval_SetSwitchInterval()
329 struct _gil_runtime_state *gil = &_PyRuntime.ceval.gil; in _PyEval_GetSwitchInterval()
Dpreconfig.c937 if (_PyRuntime.core_initialized) { in _PyPreConfig_Write()
965 preconfig_copy(&_PyRuntime.preconfig, &config); in _PyPreConfig_Write()
Dceval.c267 _PyRuntimeState *runtime = &_PyRuntime; in PyEval_ThreadsInitialized()
352 _PyRuntimeState *runtime = &_PyRuntime; in PyEval_AcquireLock()
362 _PyRuntimeState *runtime = &_PyRuntime; in PyEval_ReleaseLock()
451 _PyRuntimeState *runtime = &_PyRuntime; in PyEval_SaveThread()
598 interp = _PyRuntime.interpreters.main; in Py_AddPendingCall()
858 _PyRuntimeState * const runtime = &_PyRuntime; in eval_frame_handle_pending()
Dinitconfig.c1720 const PyPreConfig *preconfig = &_PyRuntime.preconfig; in config_read()
2315 status = _PyPreConfig_InitFromPreConfig(&preconfig, &_PyRuntime.preconfig); in core_read_precmdline()
Dsysmodule.c364 _PyRuntimeState *runtime = &_PyRuntime; in PySys_AddAuditHook()
/external/python/cpython3/Objects/
Dfileobject.c534 if (_PyRuntime.open_code_hook) { in PyFile_SetOpenCodeHook()
542 _PyRuntime.open_code_hook = hook; in PyFile_SetOpenCodeHook()
543 _PyRuntime.open_code_userdata = userData; in PyFile_SetOpenCodeHook()
558 Py_OpenCodeHookFunction hook = _PyRuntime.open_code_hook; in PyFile_OpenCodeObject()
560 f = hook(path, _PyRuntime.open_code_userdata); in PyFile_OpenCodeObject()
/external/python/cpython3/Tools/c-analyzer/
DREADME32 consolidated under a single top-level _PyRuntime global. No new globals
Dignored-globals.txt61 _PyRuntime
Dknown.tsv1536 Python/pylifecycle.c - _PyRuntime variable _PyRuntimeState _PyRuntime
/external/python/cpython3/Tools/c-analyzer/cpython/
DREADME62 consolidated under a single top-level _PyRuntime global. No new globals
/external/python/cpython3/Programs/
D_testembed.c926 rt_preconfig = &_PyRuntime.preconfig; in check_preinit_isolated_config()
937 rt_preconfig = &_PyRuntime.preconfig; in check_preinit_isolated_config()
/external/python/cpython3/Misc/NEWS.d/
D3.9.0a5.rst221 It now accesses the ``_PyRuntime`` variable directly instead of using
1145 Remove ``_PyRuntime.getframe`` hook and remove ``_PyThreadState_GetFrame``
1146 macro which was an alias to ``_PyRuntime.getframe``. They were only exposed
D3.7.0a3.rst42 _PyRuntime to Objects/obmalloc.c. The memory allocators are once again
/external/python/cpython3/Modules/
Dsignalmodule.c254 PyInterpreterState *interp = _PyRuntime.interpreters.main; in trip_signal()
D_threadmodule.c1065 _PyRuntimeState *runtime = &_PyRuntime; in thread_PyThread_start_new_thread()
Dposixmodule.c573 _PyRuntimeState *runtime = &_PyRuntime; in PyOS_AfterFork_Child()
/external/python/cpython3/Doc/whatsnew/
D3.9.rst1416 * Removed ``_PyRuntime.getframe`` hook and removed ``_PyThreadState_GetFrame``
1417 macro which was an alias to ``_PyRuntime.getframe``. They were only exposed
/external/python/cpython3/Doc/c-api/
Dinit_config.rst49 ``_PyRuntime.preconfig`` and the configuration (``PyConfig`` type) is stored in