mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-04-26 04:07:02 +00:00
PyEval_InitThreads only for older than 3.9
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user