##// END OF EJS Templates
Fix http://www.scipy.net/roundup/ipython/issue55, a threading bug. It was...
fperez -
r267:04f05db2
parent child
Show More
@@ -4,7 +4,7
4 4 All the matplotlib support code was co-developed with John Hunter,
5 5 matplotlib's author.
6 6
7 $Id: Shell.py 1079 2006-01-24 21:52:31Z vivainio $"""
7 $Id: Shell.py 1297 2006-05-13 19:14:48Z fperez $"""
8 8
9 9 #*****************************************************************************
10 10 # Copyright (C) 2001-2006 Fernando Perez <fperez@colorado.edu>
@@ -337,7 +337,7 class MTInteractiveShell(InteractiveShell):
337 337 Multithreaded wrapper around IPython's runcode()."""
338 338
339 339 # lock thread-protected stuff
340 self.thread_ready.acquire(False)
340 got_lock = self.thread_ready.acquire(False)
341 341
342 342 # Install sigint handler
343 343 try:
@@ -365,7 +365,8 class MTInteractiveShell(InteractiveShell):
365 365 InteractiveShell.runcode(self,code_to_run)
366 366
367 367 # We're done with thread-protected variables
368 self.thread_ready.release()
368 if got_lock:
369 self.thread_ready.release()
369 370 # This MUST return true for gtk threading to work
370 371 return True
371 372
@@ -1,3 +1,10
1 2006-05-13 Fernando Perez <Fernando.Perez@colorado.edu>
2
3 * IPython\Shell.py (MTInteractiveShell.runsource): Fix threading
4 bug, closes http://www.scipy.net/roundup/ipython/issue55. A lock
5 was being released in a routine which hadn't checked if it had
6 been the one to acquire it.
7
1 8 2006-05-07 Fernando Perez <Fernando.Perez@colorado.edu>
2 9
3 10 * IPython/Release.py (version): put out 0.7.2.rc1 for testing.
General Comments 0
You need to be logged in to leave comments. Login now