$85 GRAYBYTE WORDPRESS FILE MANAGER $22

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python38/include/python3.8/internal/

HOME
Current File : /opt/alt/python38/include/python3.8/internal//pycore_gil.h
#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_condvar.h"
#include "pycore_atomic.h"

#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 */


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
26 Oct 2024 8.36 AM
root / linksafe
0755
pycore_accu.h
1.1 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
pycore_atomic.h
16.547 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
pycore_ceval.h
0.943 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
pycore_code.h
0.529 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
pycore_condvar.h
2.743 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
pycore_context.h
0.761 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
pycore_fileutils.h
1.225 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
pycore_getopt.h
0.479 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
pycore_gil.h
1.484 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
pycore_hamt.h
3.611 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
pycore_initconfig.h
5.096 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
pycore_long.h
1.512 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
pycore_object.h
2.828 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
pycore_pathconfig.h
1.989 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
pycore_pyerrors.h
1.298 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
pycore_pyhash.h
0.201 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
pycore_pylifecycle.h
3.726 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
pycore_pymem.h
8.024 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
pycore_pystate.h
9.363 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
pycore_traceback.h
3.004 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
pycore_tupleobject.h
0.408 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
pycore_warnings.h
0.577 KB
6 Sep 2024 8.41 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF