#4083 NORM Never A: remove active loop in the datastore

Zarro Boogs per Child bugtracker at laptop.org
Sun Oct 7 15:27:36 EDT 2007


#4083: remove active loop in the datastore
-----------------------+----------------------------------------------------
 Reporter:  tomeu      |       Owner:  bcsaller      
     Type:  defect     |      Status:  new           
 Priority:  normal     |   Milestone:  Never Assigned
Component:  datastore  |     Version:                
 Keywords:             |    Verified:  0             
-----------------------+----------------------------------------------------
 due to some issue with threads and receiving messages from dbus, the
 datastore has shipped in the last two milestones with an active loop like
 this:

 {{{
     # XXX: The context/sleep loop is a work around for what seems
     # to be the mainloop blocking in such a way that the indexer
     # thread doesn't run until new dbus messages come in...
     # I intend to track this down post trial-2
     # really awful
     import time
     context = mainloop.get_context()
     try:
         while connected:
             context.iteration(False)
             time.sleep(0.0025)
 }}}

 This is making the process wake up every 2.5ms, which is specially bad in
 the xo.

-- 
Ticket URL: <https://dev.laptop.org/ticket/4083>
One Laptop Per Child <https://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list