summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b82ad33)
see https://docs.python.org/3/c-api/init.html#c.PyEval_InitThreads
}
PySys_SetArgv(pyArgc, changed_pyArgv);
}
}
PySys_SetArgv(pyArgc, changed_pyArgv);
}
+#if PY_VERSION_HEX < 0x03070000
PyEval_InitThreads(); /* Create (and acquire) the interpreter lock (for threads)*/
PyEval_InitThreads(); /* Create (and acquire) the interpreter lock (for threads)*/
PyEval_SaveThread(); /* Release the thread state */
//here we do not have the Global Interpreter Lock
}
PyEval_SaveThread(); /* Release the thread state */
//here we do not have the Global Interpreter Lock
}
{
if(!getSess()->isLaunched())
getSess()->launch();
{
if(!getSess()->isLaunched())
getSess()->launch();
+#if PY_VERSION_HEX < 0x03070000
if(!PyEval_ThreadsInitialized())
PyEval_InitThreads();
if(!PyEval_ThreadsInitialized())
PyEval_InitThreads();
connect(getThread(),SIGNAL(finished()),this,SLOT(evaluationFinished()));
setEnabled(false);
getThread()->start();
connect(getThread(),SIGNAL(finished()),this,SLOT(evaluationFinished()));
setEnabled(false);
getThread()->start();