docker-offlineimap/offlineimap
Sebastian Spaeth 0cdfffa04d Don't always sleep while waiting for exited threads
Rather than poll our exitthread Queue in a non-blocking fashion and
always sleep for 1 second inbetween, simply call it in a blocking
fashion which will return immediately when a thread has exited. This
is somewhat faster as we don't do unnecessary sleeps after a thread
exited.

Do note that we need to specify some timeout value here (the 60 chosen
is pretty arbitary, but what the value exactly is, is not that
important, it could be any positive value) in order to make the
Queue.get() call work with SIGINT (cf
http://bugs.python.org/issue1360).

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2010-12-09 19:52:48 +01:00
..
folder Change X-OfflineIMAP header format 2010-12-09 19:52:48 +01:00
repository Bugfix patch for offlineimap 2010-08-20 08:29:47 -05:00
ui Fix Machine ui to not error out on ui.warn() 2010-12-09 19:52:48 +01:00
__init__.py Step 2 of SVN to arch tree conversion 2005-04-16 20:33:35 +01:00
accounts.py Prettify message formatting 2010-12-09 19:52:48 +01:00
CustomConfig.py Update FSF address 2006-08-12 05:15:55 +01:00
imaplibutil.py Fix ssl socket wrap deprecation warning. 2009-08-24 00:01:54 -05:00
imapserver.py Bugfix patch for offlineimap 2010-08-20 08:29:47 -05:00
imaputil.py Update FSF address 2006-08-12 05:15:55 +01:00
init.py Now support multiple -k options on the command line. 2010-04-21 09:17:08 -05:00
localeval.py Update FSF address 2006-08-12 05:15:55 +01:00
mbnames.py Update FSF address 2006-08-12 05:15:55 +01:00
syncmaster.py remove unneeded includes from syncmaster.py 2010-12-09 19:52:48 +01:00
threadutil.py Don't always sleep while waiting for exited threads 2010-12-09 19:52:48 +01:00
version.py update version info 2009-08-12 00:41:19 -05:00