Equivalent of PyEval_ThreadsInitialized for 2.3?
therve at gmail.com
therve at gmail.com
Thu Apr 5 05:17:12 EDT 2007
I ran into a problem with PyGILState_Release under Python < 2.4.2,
that forced me to call PyEval_InitThreads() in my extension module.
2.4.2 had a fix for that problem :"It is now safe to call
PyGILState_Release() before PyEval_InitThreads()" (from the NEWS
file).
I can live with this call, but I was wondering if there isn't a better
way. As PyEval_ThreadsInitialized is not available either, it seems
there is no way to know if threads have been initialized.
Thanks!
--
Thomas
More information about the Python-list
mailing list