Equivalent of PyEval_ThreadsInitialized for 2.3?

T

therve

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top