Searched refs:_PyRuntime (Results 1 – 22 of 22) sorted by relevance
20 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()
115 PyAPI_DATA(_PyRuntimeState) _PyRuntime;
214 _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 …]
65 _PyRuntimeState _PyRuntime = _PyRuntimeState_INIT; variable82 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 …]
200 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()
937 if (_PyRuntime.core_initialized) { in _PyPreConfig_Write()965 preconfig_copy(&_PyRuntime.preconfig, &config); in _PyPreConfig_Write()
267 _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()
1720 const PyPreConfig *preconfig = &_PyRuntime.preconfig; in config_read()2315 status = _PyPreConfig_InitFromPreConfig(&preconfig, &_PyRuntime.preconfig); in core_read_precmdline()
364 _PyRuntimeState *runtime = &_PyRuntime; in PySys_AddAuditHook()
534 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()
32 consolidated under a single top-level _PyRuntime global. No new globals
61 _PyRuntime
1536 Python/pylifecycle.c - _PyRuntime variable _PyRuntimeState _PyRuntime
62 consolidated under a single top-level _PyRuntime global. No new globals
926 rt_preconfig = &_PyRuntime.preconfig; in check_preinit_isolated_config()937 rt_preconfig = &_PyRuntime.preconfig; in check_preinit_isolated_config()
221 It now accesses the ``_PyRuntime`` variable directly instead of using1145 Remove ``_PyRuntime.getframe`` hook and remove ``_PyThreadState_GetFrame``1146 macro which was an alias to ``_PyRuntime.getframe``. They were only exposed
42 _PyRuntime to Objects/obmalloc.c. The memory allocators are once again
254 PyInterpreterState *interp = _PyRuntime.interpreters.main; in trip_signal()
1065 _PyRuntimeState *runtime = &_PyRuntime; in thread_PyThread_start_new_thread()
573 _PyRuntimeState *runtime = &_PyRuntime; in PyOS_AfterFork_Child()
1416 * Removed ``_PyRuntime.getframe`` hook and removed ``_PyThreadState_GetFrame``1417 macro which was an alias to ``_PyRuntime.getframe``. They were only exposed
49 ``_PyRuntime.preconfig`` and the configuration (``PyConfig`` type) is stored in