threading: rename threadslist to accountThreads
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
parent
9f8aa38d62
commit
857b2f449a
@ -16,7 +16,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
from offlineimap.threadutil import threadlist, InstanceLimitedThread, STOP_MONITOR
|
||||
from offlineimap.threadutil import accountThreads, InstanceLimitedThread, STOP_MONITOR
|
||||
from offlineimap.accounts import SyncableAccount
|
||||
from threading import currentThread
|
||||
|
||||
@ -37,7 +37,7 @@ def syncitall(accounts, config):
|
||||
# Special exit message for the monitor to stop looping so the main thread
|
||||
# can exit.
|
||||
currentThread().exit_message = STOP_MONITOR
|
||||
threads = threadlist() # The collection of threads.
|
||||
threads = accountThreads() # The collection of accounts threads.
|
||||
for accountname in accounts:
|
||||
# Start a new thread per account and store it in the collection.
|
||||
threads.add(syncaccount(config, accountname))
|
||||
|
@ -41,7 +41,7 @@ def semaphorereset(semaphore, originalstate):
|
||||
for i in range(originalstate):
|
||||
semaphore.release()
|
||||
|
||||
class threadlist:
|
||||
class accountThreads(object):
|
||||
"""Store the list of all threads in the software so it can be used to find out
|
||||
what's running and what's not."""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user