From dcd4d20b07df938139b1c15358f5f73eddb0867d Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 20 Nov 2021 19:20:39 -0800 Subject: [PATCH] Rename PooledThread.start -> mainloop. --- voussoirkit/threadpool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/voussoirkit/threadpool.py b/voussoirkit/threadpool.py index c64ff44..d39ed6b 100644 --- a/voussoirkit/threadpool.py +++ b/voussoirkit/threadpool.py @@ -67,7 +67,7 @@ class PooledThread: ''' def __init__(self, pool): self.pool = pool - self.thread = threading.Thread(target=self.start, daemon=True) + self.thread = threading.Thread(target=self.mainloop, daemon=True) self.thread.start() def __repr__(self): @@ -103,7 +103,7 @@ class PooledThread: log.debug('%s is joining.', self) self.thread.join() - def start(self): + def mainloop(self): while True: # Let's wait for jobs_available first and unpaused second. # If the time between the two waits is very long, the worst thing