Skip to content

Commit 5e7d423

Browse files
committed
Add comment for Python version
1 parent d569c4c commit 5e7d423

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/pybind11/detail/internals.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,8 @@ class pycritical_section {
245245

246246
public:
247247
explicit pycritical_section(pymutex &m) : mutex(m) {
248-
# if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x030E00C1
248+
// 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
249250
PyCriticalSection_BeginMutex(&cs, &mutex.mutex);
250251
# else
251252
_PyCriticalSection_BeginMutex(_PyThreadState_GET(), &cs, &mutex.mutex);

0 commit comments

Comments
 (0)