Even more test coverage
This commit is contained in:
parent
1069d79298
commit
5943f757a0
3 changed files with 134 additions and 35 deletions
|
@ -246,6 +246,10 @@ class ThreadPool(object):
|
|||
|
||||
self.busy_callback(self.current_jobs, self.work_queue.qsize())
|
||||
|
||||
def block_till_done(self):
|
||||
""" Blocks till all work is done. """
|
||||
self.work_queue.join()
|
||||
|
||||
|
||||
class PriorityQueueItem(object):
|
||||
""" Holds a priority and a value. Used within PriorityQueue. """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue