We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d569c4c commit 5e7d423Copy full SHA for 5e7d423
include/pybind11/detail/internals.h
@@ -245,7 +245,8 @@ class pycritical_section {
245
246
public:
247
explicit pycritical_section(pymutex &m) : mutex(m) {
248
-# if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x030E00C1
+ // PyCriticalSection_BeginMutex was added in Python 3.15.0a1 and backported to 3.14.0rc1
249
+# if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x030E00C1 // 3.14.0rc1
250
PyCriticalSection_BeginMutex(&cs, &mutex.mutex);
251
# else
252
_PyCriticalSection_BeginMutex(_PyThreadState_GET(), &cs, &mutex.mutex);
0 commit comments