RE: [Python-Dev] Find out whether PyEval_InitThreads has been called?

Why not go one step further and make all locking operations in python no-ops if PyEval_InitThreads has never been called? Currently, we risk python crashing if we call such functions without calling PyEval_InitThreads.
+1. Seems like it can't possibly hurt, and as you say, it's trivial to implement. -- Michael Chermside

A Ter, 2004-08-17 às 18:19, Michael Chermside escreveu:
Why not go one step further and make all locking operations in python no-ops if PyEval_InitThreads has never been called? Currently, we risk python crashing if we call such functions without calling PyEval_InitThreads.
+1. Seems like it can't possibly hurt, and as you say, it's trivial to implement.
Thanks for the feedback. http://www.python.org/sf?id=1011380 Regards. -- Gustavo J. A. M. Carneiro <gjc@inescporto.pt> <gustavo@users.sourceforge.net> The universe is always one step beyond logic
participants (2)
-
Gustavo J. A. M. Carneiro
-
Michael Chermside