Skip to content

Commit 11f90e5

Browse files
committed
Include critical sections in dict API
1 parent dc4cd2c commit 11f90e5

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

Objects/dictobject.c

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -113,17 +113,18 @@ As a consequence of this, split keys have a maximum size of 16.
113113
#define PyDict_MINSIZE 8
114114

115115
#include "Python.h"
116-
#include "pycore_bitutils.h" // _Py_bit_length
117-
#include "pycore_call.h" // _PyObject_CallNoArgs()
118-
#include "pycore_ceval.h" // _PyEval_GetBuiltin()
119-
#include "pycore_code.h" // stats
120-
#include "pycore_dict.h" // export _PyDict_SizeOf()
121-
#include "pycore_gc.h" // _PyObject_GC_IS_TRACKED()
122-
#include "pycore_object.h" // _PyObject_GC_TRACK(), _PyDebugAllocatorStats()
123-
#include "pycore_pyerrors.h" // _PyErr_GetRaisedException()
124-
#include "pycore_pystate.h" // _PyThreadState_GET()
125-
#include "pycore_setobject.h" // _PySet_NextEntry()
126-
#include "stringlib/eq.h" // unicode_eq()
116+
#include "pycore_bitutils.h" // _Py_bit_length
117+
#include "pycore_call.h" // _PyObject_CallNoArgs()
118+
#include "pycore_ceval.h" // _PyEval_GetBuiltin()
119+
#include "pycore_code.h" // stats
120+
#include "pycore_critical_section.h" // Py_BEGIN_CRITICAL_SECTION, Py_END_CRITICAL_SECTION
121+
#include "pycore_dict.h" // export _PyDict_SizeOf()
122+
#include "pycore_gc.h" // _PyObject_GC_IS_TRACKED()
123+
#include "pycore_object.h" // _PyObject_GC_TRACK(), _PyDebugAllocatorStats()
124+
#include "pycore_pyerrors.h" // _PyErr_GetRaisedException()
125+
#include "pycore_pystate.h" // _PyThreadState_GET()
126+
#include "pycore_setobject.h" // _PySet_NextEntry()
127+
#include "stringlib/eq.h" // unicode_eq()
127128

128129
#include <stdbool.h>
129130

0 commit comments

Comments
 (0)