Package omero :: Package util :: Module populate_roi :: Class ThreadPool
[hide private]
[frames] | no frames]

Class ThreadPool

source code

Pool of threads consuming tasks from a queue

Instance Methods [hide private]
 
__init__(self, num_threads) source code
 
add_task(self, func, *args, **kargs)
Add a task to the queue
source code
 
wait_completion(self)
Wait for completion of all the tasks in the queue
source code