Author: dmeyer
Date: Fri Jul 13 10:24:26 2007
New Revision: 2761

Log:
make it possible not to wait for a thread on exit

Modified:
   trunk/base/src/notifier/thread.py

Modified: trunk/base/src/notifier/thread.py
==============================================================================
--- trunk/base/src/notifier/thread.py   (original)
+++ trunk/base/src/notifier/thread.py   Fri Jul 13 10:24:26 2007
@@ -146,6 +146,14 @@
             "exception": Signal()
         }
 
+
+    def wait_on_exit(self, wait=False):
+        """
+        Wait for the thread on application exit. Default is True.
+        """
+        self.setDaemon(not wait)
+
+
     def _emit_and_join(self, signal, arg):
         """
         Run callback signals and join dead thread.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to