bpo-40268: Remove explicit pythread.h includes (#19529)

Remove explicit pythread.h includes: it is always included
by Python.h.
This commit is contained in:
Victor Stinner 2020-04-15 02:04:42 +02:00 committed by GitHub
parent d01628e411
commit 62183b8d6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 7 additions and 46 deletions

View file

@ -240,7 +240,6 @@ UNSIGNAL_ASYNC_EXC(PyInterpreterState *interp)
#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
#include "pythread.h"
#include "ceval_gil.h"
static void

View file

@ -150,8 +150,6 @@ _PyImportZip_Init(PyThreadState *tstate)
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;

View file

@ -2350,8 +2350,6 @@ Py_ExitStatusException(PyStatus status)
/* Clean up and exit */
# include "pythread.h"
/* For the atexit module. */
void _Py_PyAtExit(void (*func)(PyObject *), PyObject *module)
{

View file

@ -26,7 +26,6 @@ Data members:
#include "pycore_pymem.h"
#include "pycore_pystate.h" // _PyThreadState_GET()
#include "pycore_tupleobject.h"
#include "pythread.h"
#include "pydtrace.h"
#include "osdefs.h"

View file

@ -23,8 +23,6 @@
#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