GRAYBYTE WORDPRESS FILE MANAGER6980

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/alt/python310/include/python3.10/internal/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/python310/include/python3.10/internal//pycore_runtime.h
#ifndef Py_INTERNAL_RUNTIME_H
#define Py_INTERNAL_RUNTIME_H
#ifdef __cplusplus
extern "C" {
#endif

#ifndef Py_BUILD_CORE
#  error "this header requires Py_BUILD_CORE define"
#endif

#include "pycore_atomic.h"    /* _Py_atomic_address */
#include "pycore_gil.h"       // struct _gil_runtime_state

/* ceval state */

struct _ceval_runtime_state {
    /* Request for checking signals. It is shared by all interpreters (see
       bpo-40513). Any thread of any interpreter can receive a signal, but only
       the main thread of the main interpreter can handle signals: see
       _Py_ThreadCanHandleSignals(). */
    _Py_atomic_int signals_pending;
#ifndef EXPERIMENTAL_ISOLATED_SUBINTERPRETERS
    struct _gil_runtime_state gil;
#endif
};

/* GIL state */

struct _gilstate_runtime_state {
    /* bpo-26558: Flag to disable PyGILState_Check().
       If set to non-zero, PyGILState_Check() always return 1. */
    int check_enabled;
    /* Assuming the current thread holds the GIL, this is the
       PyThreadState for the current thread. */
    _Py_atomic_address tstate_current;
    /* The single PyInterpreterState used by this process'
       GILState implementation
    */
    /* TODO: Given interp_main, it may be possible to kill this ref */
    PyInterpreterState *autoInterpreterState;
    Py_tss_t autoTSSkey;
};

/* Runtime audit hook state */

typedef struct _Py_AuditHookEntry {
    struct _Py_AuditHookEntry *next;
    Py_AuditHookFunction hookCFunction;
    void *userData;
} _Py_AuditHookEntry;

struct _Py_unicode_runtime_ids {
    PyThread_type_lock lock;
    // next_index value must be preserved when Py_Initialize()/Py_Finalize()
    // is called multiple times: see _PyUnicode_FromId() implementation.
    Py_ssize_t next_index;
};

/* Full Python runtime state */

typedef struct pyruntimestate {
    /* Is running Py_PreInitialize()? */
    int preinitializing;

    /* Is Python preinitialized? Set to 1 by Py_PreInitialize() */
    int preinitialized;

    /* Is Python core initialized? Set to 1 by _Py_InitializeCore() */
    int core_initialized;

    /* Is Python fully initialized? Set to 1 by Py_Initialize() */
    int initialized;

    /* Set by Py_FinalizeEx(). Only reset to NULL if Py_Initialize()
       is called again.

       Use _PyRuntimeState_GetFinalizing() and _PyRuntimeState_SetFinalizing()
       to access it, don't access it directly. */
    _Py_atomic_address _finalizing;

    struct pyinterpreters {
        PyThread_type_lock mutex;
        PyInterpreterState *head;
        PyInterpreterState *main;
        /* _next_interp_id is an auto-numbered sequence of small
           integers.  It gets initialized in _PyInterpreterState_Init(),
           which is called in Py_Initialize(), and used in
           PyInterpreterState_New().  A negative interpreter ID
           indicates an error occurred.  The main interpreter will
           always have an ID of 0.  Overflow results in a RuntimeError.
           If that becomes a problem later then we can adjust, e.g. by
           using a Python int. */
        int64_t next_id;
    } interpreters;
    // XXX Remove this field once we have a tp_* slot.
    struct _xidregistry {
        PyThread_type_lock mutex;
        struct _xidregitem *head;
    } xidregistry;

    unsigned long main_thread;

#define NEXITFUNCS 32
    void (*exitfuncs[NEXITFUNCS])(void);
    int nexitfuncs;

    struct _ceval_runtime_state ceval;
    struct _gilstate_runtime_state gilstate;

    PyPreConfig preconfig;

    // Audit values must be preserved when Py_Initialize()/Py_Finalize()
    // is called multiple times.
    Py_OpenCodeHookFunction open_code_hook;
    void *open_code_userdata;
    _Py_AuditHookEntry *audit_hook_head;

    struct _Py_unicode_runtime_ids unicode_ids;

    // XXX Consolidate globals found via the check-c-globals script.
} _PyRuntimeState;

#define _PyRuntimeState_INIT \
    {.preinitialized = 0, .core_initialized = 0, .initialized = 0}
/* Note: _PyRuntimeState_INIT sets other fields to 0/NULL */


PyAPI_DATA(_PyRuntimeState) _PyRuntime;

PyAPI_FUNC(PyStatus) _PyRuntimeState_Init(_PyRuntimeState *runtime);
PyAPI_FUNC(void) _PyRuntimeState_Fini(_PyRuntimeState *runtime);

#ifdef HAVE_FORK
extern PyStatus _PyRuntimeState_ReInitThreads(_PyRuntimeState *runtime);
#endif

/* Initialize _PyRuntimeState.
   Return NULL on success, or return an error message on failure. */
PyAPI_FUNC(PyStatus) _PyRuntime_Initialize(void);

PyAPI_FUNC(void) _PyRuntime_Finalize(void);


static inline PyThreadState*
_PyRuntimeState_GetFinalizing(_PyRuntimeState *runtime) {
    return (PyThreadState*)_Py_atomic_load_relaxed(&runtime->_finalizing);
}

static inline void
_PyRuntimeState_SetFinalizing(_PyRuntimeState *runtime, PyThreadState *tstate) {
    _Py_atomic_store_relaxed(&runtime->_finalizing, (uintptr_t)tstate);
}

#ifdef __cplusplus
}
#endif
#endif /* !Py_INTERNAL_RUNTIME_H */

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
May 13 2025 08:38:35
root / linksafe
0755
pycore_abstract.h
0.468 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_accu.h
1.1 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_asdl.h
2.901 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_ast.h
28.152 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_ast_state.h
6.306 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_atomic.h
16.581 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_atomic_funcs.h
2.381 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_bitutils.h
5.147 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_blocks_output_buffer.h
8.484 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_bytes_methods.h
3.305 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_call.h
0.85 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_ceval.h
3.402 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_code.h
0.68 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_compile.h
1.021 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_condvar.h
2.743 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_context.h
0.803 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_dtoa.h
0.631 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_fileutils.h
1.664 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_format.h
0.469 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_gc.h
6.698 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_getopt.h
0.479 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_gil.h
1.528 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_hamt.h
3.61 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_hashtable.h
4.099 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_import.h
0.338 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_initconfig.h
5.493 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_interp.h
9.071 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_list.h
0.342 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_long.h
2.528 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_moduleobject.h
1.022 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_object.h
5.849 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_parser.h
0.611 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_pathconfig.h
1.935 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_pyarena.h
2.669 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_pyerrors.h
2.26 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_pyhash.h
0.201 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_pylifecycle.h
4.824 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_pymem.h
3.136 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_pystate.h
3.846 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_runtime.h
4.787 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_structseq.h
0.377 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_symtable.h
5.447 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_sysmodule.h
0.535 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_traceback.h
2.9 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_tuple.h
0.415 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_ucnhash.h
0.877 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_unionobject.h
0.614 KB
April 08 2025 12:10:59
root / linksafe
0644
pycore_warnings.h
0.618 KB
April 08 2025 12:10:59
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF