[livecoding] r128 committed - Added the EndMonitoring method to the CodeReloader class. This ensure...

2 views
Skip to first unread message

livec...@googlecode.com

unread,
Jan 14, 2010, 12:57:12 AM1/14/10
to py-livecod...@googlegroups.com
Revision: 128
Author: richard.m.tew
Date: Wed Jan 13 21:56:57 2010
Log: Added the EndMonitoring method to the CodeReloader class. This
ensures that file monitoring threads can be made to exit. The reason this
is important, is that if secondary Python threads are running when the main
one exits, the interpreter will lock up until the secondary threads exit
too.
http://code.google.com/p/livecoding/source/detail?r=128

Modified:
/trunk/reloader.py

=======================================
--- /trunk/reloader.py Fri Jan 8 00:52:17 2010
+++ /trunk/reloader.py Wed Jan 13 21:56:57 2010
@@ -46,6 +46,10 @@
import filechanges
return filechanges.ChangeHandler(cb, *args, **kwargs)

+ def EndMonitoring(self):
+ if self.monitorFileChanges:
+ self.internalFileMonitor = None
+
#
------------------------------------------------------------------------
# Directory registration support.

Reply all
Reply to author
Forward
0 new messages