[IPython-user] Multithreading shell simplified, testing needed

Ville M. Vainio vivainio@gmail....
Tue Mar 11 13:29:52 CDT 2008


I have simplified the multithreading (MTInteractiveShell) quite a bit,
and I need people to test it with different backends. I only tested
q4thread myself.

It works pretty much the same, albeit with much less (redundant)
locking. It should be less prone to have deadlocks, and some oddities
were removed (why did we not 'return' from runcode() if self._kill was
set?!?). Better, it should be straightforward enough for
non-thread-wizards to understand; threading.Event and Queue are quite
obvious in their functionality, which can't be said about the old
threading.Condition(RLock).

The change is here:
http://bazaar.launchpad.net/~ipython/ipython/mtexp/revision/50

Get the code from:

bzr branch http://bazaar.launchpad.net/~ipython/ipython/mtexp

and try it out!

-- 
Ville M. Vainio - vivainio.googlepages.com
blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio'


More information about the IPython-user mailing list