diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-06-09 11:28:37 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-06-09 11:28:37 +0200 |
commit | f2c8d26d3b25b864ad48e6de018757266b59f708 (patch) | |
tree | 4c455469b09e049ff8e29e6166bc2118356dc9cd /lib/git/async/pool.py | |
parent | 15941ca090a2c3c987324fc911bbc6f89e941c47 (diff) | |
download | gitpython-f2c8d26d3b25b864ad48e6de018757266b59f708.tar.gz |
thread: fixed initialization problem if an empty iterable was handed in
queue: Queue now derives from deque directly, which safes one dict lookup as the queue does not need to be accessed through self anymore
pool test improved to better verify threads are started correctly
Diffstat (limited to 'lib/git/async/pool.py')
-rw-r--r-- | lib/git/async/pool.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/git/async/pool.py b/lib/git/async/pool.py index 7bddf7da..7ed6fd8e 100644 --- a/lib/git/async/pool.py +++ b/lib/git/async/pool.py @@ -331,9 +331,8 @@ class Pool(object): def set_size(self, size=0): """Set the amount of workers to use in this pool. When reducing the size, - the call may block as it waits for threads to finish. - When reducing the size to zero, this thread will process all remaining - items on the queue. + threads will continue with their work until they are done before effectively + being removed. :return: self :param size: if 0, the pool will do all work itself in the calling thread, |