summaryrefslogtreecommitdiff
path: root/lib/git/async/pool.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-06-09 11:28:37 +0200
committerSebastian Thiel <byronimo@gmail.com>2010-06-09 11:28:37 +0200
commitf2c8d26d3b25b864ad48e6de018757266b59f708 (patch)
tree4c455469b09e049ff8e29e6166bc2118356dc9cd /lib/git/async/pool.py
parent15941ca090a2c3c987324fc911bbc6f89e941c47 (diff)
downloadgitpython-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.py5
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,