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 c5bed09 commit 27969fcCopy full SHA for 27969fc
cassandra/io/libevwrapper.c
@@ -665,9 +665,14 @@ initlibevwrapper(void)
665
if (PyModule_AddObject(module, "Timer", (PyObject *)&libevwrapper_TimerType) == -1)
666
INITERROR;
667
668
+#if PY_MAJOR_VERSION < 3 && PY_MINOR_VERSION < 7
669
+ // Since CPython 3.7, `Py_Initialize()` routing always initializes GIL.
670
+ // Routine `PyEval_ThreadsInitialized()` has been deprecated in CPython 3.7
671
+ // and completely removed in CPython 3.13.
672
if (!PyEval_ThreadsInitialized()) {
673
PyEval_InitThreads();
674
}
675
+#endif
676
677
#if PY_MAJOR_VERSION >= 3
678
return module;
0 commit comments