PyEval_InitThreads only for older than 3.9
This commit is contained in:
parent
e76cdab6dd
commit
61b07bc9a6
@ -122,7 +122,9 @@ void pyinterpreter_preinit()
|
||||
|
||||
void pyinterpreter_initialize()
|
||||
{
|
||||
#if PY_VERSION_HEX < 0x03090000
|
||||
PyEval_InitThreads();
|
||||
#endif
|
||||
m_threadState = PyEval_SaveThread();
|
||||
PyEval_AcquireThread(m_threadState);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user