[Neo-report] r1924 gregory - /trunk/neo/neoctl/neoctl.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Mar 8 21:43:51 CET 2010


Author: gregory
Date: Mon Mar  8 21:43:51 2010
New Revision: 1924

Log:
Add an XXX when a loop call poll(0).

Modified:
    trunk/neo/neoctl/neoctl.py

Modified: trunk/neo/neoctl/neoctl.py
==============================================================================
--- trunk/neo/neoctl/neoctl.py [iso-8859-1] (original)
+++ trunk/neo/neoctl/neoctl.py [iso-8859-1] Mon Mar  8 21:43:51 2010
@@ -41,6 +41,7 @@
             self.connection = ClientConnection(self.em, self.handler, 
                     addr=self.server, connector=self.connector_handler())
             while not self.connected and self.connection is not None:
+                # XXX: this burn the CPU
                 self.em.poll(0)
             if self.connection is None:
                 raise NotReadyException
@@ -53,6 +54,7 @@
         response_queue = self.response_queue
         assert len(response_queue) == 0
         while len(response_queue) == 0:
+            # XXX: this burn the CPU
             self.em.poll(0)
             if not self.connected:
                 raise NotReadyException, 'Connection closed'





More information about the Neo-report mailing list