Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2c680a7

Browse files
committed
gh-131238: Remove pycore_lock.h includes
PyMutex type is now part of <Python.h>, it's no longer needed to include <pycore_lock.h> to get it.
1 parent a741102 commit 2c680a7

15 files changed

+4
-17
lines changed

Include/internal/pycore_ast_state.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/internal/pycore_atexit.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#ifndef Py_INTERNAL_ATEXIT_H
22
#define Py_INTERNAL_ATEXIT_H
33

4-
#include "pycore_lock.h" // PyMutex
5-
64
#ifdef __cplusplus
75
extern "C" {
86
#endif

Include/internal/pycore_brc.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
#include <stdint.h>
55
#include "pycore_llist.h" // struct llist_node
6-
#include "pycore_lock.h" // PyMutex
76
#include "pycore_object_stack.h" // _PyObjectStack
87

98
#ifdef __cplusplus

Include/internal/pycore_ceval_state.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ extern "C" {
88
# error "this header requires Py_BUILD_CORE define"
99
#endif
1010

11-
#include "pycore_lock.h" // PyMutex
1211
#include "pycore_gil.h" // struct _gil_runtime_state
1312

1413

Include/internal/pycore_code.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ extern "C" {
1010

1111
#include "pycore_structs.h" // _Py_CODEUNIT
1212
#include "pycore_stackref.h" // _PyStackRef
13-
#include "pycore_lock.h" // PyMutex
1413
#include "pycore_backoff.h" // _Py_BackoffCounter
1514
#include "pycore_tstate.h" // _PyThreadStateImpl
1615

Include/internal/pycore_codecs.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ extern "C" {
99
#endif
1010

1111
#include "pycore_interp_structs.h" // struct codecs_state
12-
#include "pycore_lock.h" // PyMutex
1312

1413
/* Initialize codecs-related state for the given interpreter, including
1514
registering the first codec search function. Must be called before any other

Include/internal/pycore_critical_section.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# error "this header requires Py_BUILD_CORE define"
66
#endif
77

8-
#include "pycore_lock.h" // PyMutex
8+
#include "pycore_lock.h" // PyMutex_LockFast()
99
#include "pycore_pystate.h" // _PyThreadState_GET()
1010
#include <stdint.h>
1111

Include/internal/pycore_crossinterp.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ extern "C" {
88
# error "this header requires Py_BUILD_CORE define"
99
#endif
1010

11-
#include "pycore_lock.h" // PyMutex
1211
#include "pycore_pyerrors.h"
1312

1413

Include/internal/pycore_function.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
extern "C" {
55
#endif
66

7-
#include "pycore_lock.h"
8-
97
#ifndef Py_BUILD_CORE
108
# error "this header requires Py_BUILD_CORE define"
119
#endif

Include/internal/pycore_import.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ extern "C" {
1111

1212
#include "pycore_hashtable.h" // _Py_hashtable_t
1313
#include "pycore_interp_structs.h" // _import_state
14-
#include "pycore_lock.h" // PyMutex
1514

1615
extern int _PyImport_IsInitialized(PyInterpreterState *);
1716

0 commit comments

Comments
 (0)