We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ffc1b2 commit 384ca59Copy full SHA for 384ca59
2 files changed
Include/cpython/critical_section.h
@@ -118,6 +118,10 @@ struct PyCriticalSection2 {
118
PyCriticalSection _py_cs; \
119
PyCriticalSection_Begin(&_py_cs, _PyObject_CAST(op))
120
121
+# define Py_EXIT_CRITICAL_SECTION() \
122
+ _PyCriticalSection_End(&_py_cs);
123
+
124
125
# define Py_END_CRITICAL_SECTION() \
126
PyCriticalSection_End(&_py_cs); \
127
}
Include/internal/pycore_critical_section.h
@@ -26,9 +26,6 @@ extern "C" {
26
27
_PyCriticalSection_BeginMutex(&_py_cs, mutex)
28
29
-# define Py_EXIT_CRITICAL_SECTION() \
30
- _PyCriticalSection_End(&_cs);
31
-
32
# define Py_BEGIN_CRITICAL_SECTION2_MUT(m1, m2) \
33
{ \
34
PyCriticalSection2 _py_cs2; \
0 commit comments