#include "pyerrors.h"
#include "cpython/initconfig.h"
+#include "pythread.h"
#include "pystate.h"
#include "context.h"
extern "C" {
#endif
-#include "pythread.h"
-
/* This limitation is for performance and simplicity. If needed it can be
removed (with effort). */
#define MAX_CO_EXTRA_USERS 255
#include "Python.h"
#include "pystrhex.h"
-#include "pythread.h"
#include "../hashlib.h"
#include "blake2ns.h"
#include "Python.h"
#include "pystrhex.h"
-#include "pythread.h"
#include "../hashlib.h"
#include "blake2ns.h"
#include "Python.h"
#include "structmember.h"
-#include "pythread.h"
-
#include <bzlib.h>
#include <stdio.h>
#include <Python.h>
#include "longintrepr.h"
-#include "pythread.h"
#include "structmember.h"
#include "complexobject.h"
#include "mpdecimal.h"
#include "Python.h"
#include "pycore_object.h"
#include "structmember.h"
-#include "pythread.h"
#include "_iomodule.h"
/*[clinic input]
#include "Python.h"
#include "structmember.h"
-#include "pythread.h"
#include <stdarg.h>
#include <string.h>
#include "Python.h"
#include "structmember.h" /* offsetof */
-#include "pythread.h"
/*[clinic input]
module _queue
#include "prepare_protocol.h"
#include "util.h"
-#include "pythread.h"
-
#define ACTION_FINALIZE 1
#define ACTION_RESET 2
#include "Python.h"
-#include "pythread.h"
-
/* Redefined below for Windows debug builds after important #includes */
#define _PySSL_FIX_ERRNO
#include "Python.h"
#include "datetime.h"
#include "marshal.h"
-#include "pythread.h"
#include "structmember.h"
#include <float.h>
#include <signal.h>
#include "pycore_pylifecycle.h"
#include "pycore_interp.h" // _PyInterpreterState.num_threads
#include "pycore_pystate.h" // _PyThreadState_Init()
-#include "pythread.h"
#include <stddef.h> // offsetof()
static PyObject *ThreadError;
#include "Python.h"
#include <ctype.h>
-#include "pythread.h"
-
#ifdef MS_WINDOWS
#include <windows.h>
#endif
#include "pycore_traceback.h"
#include "hashtable.h"
#include "frameobject.h"
-#include "pythread.h"
#include "osdefs.h"
#include "clinic/_tracemalloc.c.h"
#include "Python.h"
#include "pycore_initconfig.h"
#include "pycore_traceback.h"
-#include "pythread.h"
#include <signal.h>
#include <object.h>
#include <frameobject.h>
#include "pycore_ceval.h" /* _PyEval_ReInitThreads() */
#include "pycore_import.h" /* _PyImport_ReInitLock() */
#include "pycore_pystate.h" /* _PyInterpreterState_GET() */
-#include "pythread.h"
#include "structmember.h"
#ifndef MS_WINDOWS
# include "posixmodule.h"
may not be the thread that received the signal.
*/
-#include "pythread.h"
-
static volatile struct {
_Py_atomic_int tripped;
PyObject *func;
#define RELEASE_GETADDRINFO_LOCK
#endif
-#if defined(USE_GETHOSTBYNAME_LOCK) || defined(USE_GETADDRINFO_LOCK)
-# include "pythread.h"
-#endif
-
-
#if defined(__APPLE__) || defined(__CYGWIN__) || defined(__NetBSD__)
-# include <sys/ioctl.h>
+# include <sys/ioctl.h>
#endif
#endif
#if defined(__WATCOMC__) && !defined(__QNX__)
-#include <i86.h>
+# include <i86.h>
#else
-#ifdef MS_WINDOWS
-#define WIN32_LEAN_AND_MEAN
-#include <windows.h>
-#include "pythread.h"
-#endif /* MS_WINDOWS */
+# ifdef MS_WINDOWS
+# define WIN32_LEAN_AND_MEAN
+# include <windows.h>
+# endif /* MS_WINDOWS */
#endif /* !__WATCOMC__ || __QNX__ */
#ifdef _Py_MEMORY_SANITIZER
#include "zlib.h"
-#include "pythread.h"
#define ENTER_ZLIB(obj) \
Py_BEGIN_ALLOW_THREADS; \
PyThread_acquire_lock((obj)->lock, 1); \
PyThreadState* _PyOS_ReadlineTState = NULL;
-#include "pythread.h"
static PyThread_type_lock _PyOS_ReadlineLock = NULL;
int (*PyOS_InputHook)(void) = NULL;
#include "pycore_initconfig.h" // _PyConfig_InitCompatConfig()
#include "pycore_runtime.h" // _PyRuntime
#include <Python.h>
-#include "pythread.h"
#include <inttypes.h>
#include <stdio.h>
#include <wchar.h>
#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
-#include "pythread.h"
#include "ceval_gil.h"
static void
in different threads to return with a partially loaded module.
These calls are serialized by the global interpreter lock. */
-#include "pythread.h"
-
static PyThread_type_lock import_lock = 0;
static unsigned long import_lock_thread = PYTHREAD_INVALID_THREAD_ID;
static int import_lock_level = 0;
/* Clean up and exit */
-# include "pythread.h"
-
/* For the atexit module. */
void _Py_PyAtExit(void (*func)(PyObject *), PyObject *module)
{
#include "pycore_pymem.h"
#include "pycore_pystate.h" // _PyThreadState_GET()
#include "pycore_tupleobject.h"
-#include "pythread.h"
#include "pydtrace.h"
#include "osdefs.h"
#include <stdlib.h>
-#include "pythread.h"
-
#ifndef _POSIX_THREADS
/* Check if we're running on HP-UX and _SC_THREADS is defined. If so, then