0cdfffa04d
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> |
||
---|---|---|
.. | ||
folder | ||
repository | ||
ui | ||
__init__.py | ||
accounts.py | ||
CustomConfig.py | ||
imaplibutil.py | ||
imapserver.py | ||
imaputil.py | ||
init.py | ||
localeval.py | ||
mbnames.py | ||
syncmaster.py | ||
threadutil.py | ||
version.py |