[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mojonation-devel
Subject:    [Mojonation-devel] CVS: evil/client/localhost Broker.py,1.144,1.145
From:       "Gregory P. Smith" <greg () users ! sourceforge ! net>
Date:       2001-06-29 1:16:18
[Download RAW message or body]

Update of /cvsroot/mojonation/evil/client/localhost
In directory usw-pr-cvs1:/tmp/cvs-serv21184/client/localhost

Modified Files:
	Broker.py 
Log Message:
make shutdown/exit actually work on a busy broker and be much faster overall \
otherwise.


diff -d -u -r1.144 -r1.145
--- Broker.py	2001/06/22 18:08:23	1.144
+++ Broker.py	2001/06/29 01:16:16	1.145
@@ -426,16 +426,8 @@
             shutdown('TokenServerMTM')
             shutdown('ServicesMTM')
 
-            # let things finish up in other threads (XXX we should wait on
-            # something here with a timeout instead of a blind sleep)
-
-            # I propose we add a "register_shutdown_callback" method and
-            # all interested components can call it from their Broker object
-            # reference.  --Nejucomo 2000-11-16
-            # time.sleep(2) # ? I think waiting til the DoQ is done does it!  \
                --Zooko 2001-04-17
-
-            # stop the DoQ
-            self.doq.shutdown_slowly_and_gracefully()
+            # stop the DoQ (don't use an idle task to shutdown, they aren't \
guaranteed to be executed any time soon) +            \
self.doq.add_task(self.doq._shutdown, delay=1)  
         except:
             debug.stderr.write('exception while shutting down:')
@@ -455,7 +447,7 @@
 
             MetaTrackerLib.save_partyinfo_to_disk()
 
-            self.doq.add_idle_task(self.__finish_shutting_down)
+            self.doq.add_task(self.__finish_shutting_down)
         except:
             debug.stderr.write('exception while shutting down:')
             traceback.print_exc(file=debug.stderr)


_______________________________________________
Mojonation-devel mailing list
Mojonation-devel@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mojonation-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic