Check interval is done in gtk.main()

Bug #139496 reported by reacocard
2
Affects Status Importance Assigned to Milestone
cGmail
Fix Committed
Medium
Unassigned

Bug Description

In the current cgmail 0.3.1, the checking to see whether it is time to check for new mail is done in the same thread as gtk.main(). Responsiveness is currently kept by using time.sleep(0.01), but that has the unfortunate side effect of causing cGmail to wake up 100 times/second, which can negatively impact laptop battery life by preventing lower processor C-states, and also adds a slight processor load. My suggestion is to move this checking to a separate thread, and use time.sleep(check_interval), so as to avoid this problem entirely.

Revision history for this message
Venkatesh Nandakumar (venryuec) wrote :

same as bug 130601, but this one provides solution....

Revision history for this message
Marco Ferragina (ferama) wrote :

Fix Committed. Using gobject timeouts

Changed in cgmail:
importance: Undecided → Medium
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.