/opt/alt/python39/include/python3.9/internal
NameSizeModeActions
pegen_interface.h9530644editdlrm
pycore_abstract.h4790644editdlrm
pycore_accu.h11260644editdlrm
pycore_atomic.h169770644editdlrm
pycore_byteswap.h26200644editdlrm
pycore_bytes_methods.h33840644editdlrm
pycore_call.h8700644editdlrm
pycore_ceval.h34030644editdlrm
pycore_code.h5410644editdlrm
pycore_condvar.h28090644editdlrm
pycore_context.h8000644editdlrm
pycore_dtoa.h6460644editdlrm
pycore_fileutils.h15410644editdlrm
pycore_gc.h66470644editdlrm
pycore_getopt.h4900644editdlrm
pycore_gil.h15650644editdlrm
pycore_hamt.h36970644editdlrm
pycore_hashtable.h41970644editdlrm
pycore_import.h4730644editdlrm
pycore_initconfig.h52330644editdlrm
pycore_interp.h52990644editdlrm
pycore_long.h15480644editdlrm
pycore_object.h41570644editdlrm
pycore_pathconfig.h19360644editdlrm
pycore_pyerrors.h20320644editdlrm
pycore_pyhash.h2060644editdlrm
pycore_pylifecycle.h37410644editdlrm
pycore_pymem.h33630644editdlrm
pycore_pystate.h35830644editdlrm
pycore_runtime.h44520644editdlrm
pycore_sysmodule.h5480644editdlrm
pycore_traceback.h30560644editdlrm
pycore_tupleobject.h4420644editdlrm
pycore_warnings.h6330644editdlrm
Edit: /opt/alt/python39/include/python3.9/internal/pycore_gil.h (1565B)
#ifndef Py_INTERNAL_GIL_H #define Py_INTERNAL_GIL_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_condvar.h" /* PyCOND_T */ #ifndef Py_HAVE_CONDVAR # error You need either a POSIX-compatible or a Windows system! #endif /* Enable if you want to force the switching of threads at least every `interval`. */ #undef FORCE_SWITCHING #define FORCE_SWITCHING struct _gil_runtime_state { /* microseconds (the Python API uses seconds, though) */ unsigned long interval; /* Last PyThreadState holding / having held the GIL. This helps us know whether anyone else was scheduled after we dropped the GIL. */ _Py_atomic_address last_holder; /* Whether the GIL is already taken (-1 if uninitialized). This is atomic because it can be read without any lock taken in ceval.c. */ _Py_atomic_int locked; /* Number of GIL switches since the beginning. */ unsigned long switch_number; /* This condition variable allows one or several threads to wait until the GIL is released. In addition, the mutex also protects the above variables. */ PyCOND_T cond; PyMUTEX_T mutex; #ifdef FORCE_SWITCHING /* This condition variable helps the GIL-releasing thread wait for a GIL-awaiting thread to be scheduled and take the GIL. */ PyCOND_T switch_cond; PyMUTEX_T switch_mutex; #endif }; #ifdef __cplusplus } #endif #endif /* !Py_INTERNAL_GIL_H */