Skip to content

Commit 384ca59

Browse files
committed
sync with main
1 parent 4ffc1b2 commit 384ca59

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

Include/cpython/critical_section.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ struct PyCriticalSection2 {
118118
PyCriticalSection _py_cs; \
119119
PyCriticalSection_Begin(&_py_cs, _PyObject_CAST(op))
120120

121+
# define Py_EXIT_CRITICAL_SECTION() \
122+
_PyCriticalSection_End(&_py_cs);
123+
124+
121125
# define Py_END_CRITICAL_SECTION() \
122126
PyCriticalSection_End(&_py_cs); \
123127
}

Include/internal/pycore_critical_section.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ extern "C" {
2626
PyCriticalSection _py_cs; \
2727
_PyCriticalSection_BeginMutex(&_py_cs, mutex)
2828

29-
# define Py_EXIT_CRITICAL_SECTION() \
30-
_PyCriticalSection_End(&_cs);
31-
3229
# define Py_BEGIN_CRITICAL_SECTION2_MUT(m1, m2) \
3330
{ \
3431
PyCriticalSection2 _py_cs2; \

0 commit comments

Comments
 (0)