summaryrefslogtreecommitdiff
path: root/test/git/async/test_pool.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-06-09 11:35:41 +0200
committerSebastian Thiel <byronimo@gmail.com>2010-06-09 11:35:41 +0200
commit1090701721888474d34f8a4af28ee1bb1c3fdaaa (patch)
tree2a2a8cec9b2e3bcfac3125ab13afc1e225f2b32a /test/git/async/test_pool.py
parent2054561da184955c4be4a92f0b4fa5c5c1c01350 (diff)
downloadgitpython-1090701721888474d34f8a4af28ee1bb1c3fdaaa.tar.gz
HSCondition: now deriving from deque, as the AsyncQeue does, to elimitate one more level of indirection. Clearly this not good from a design standpoint, as a Condition is no Deque, but it helps speeding things up which is what this is about. Could make it a hidden class to indicate how 'special' it is
Diffstat (limited to 'test/git/async/test_pool.py')
-rw-r--r--test/git/async/test_pool.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/git/async/test_pool.py b/test/git/async/test_pool.py
index d38cbebd..dacbf0be 100644
--- a/test/git/async/test_pool.py
+++ b/test/git/async/test_pool.py
@@ -289,8 +289,8 @@ class TestThreadPool(TestBase):
self._assert_async_dependent_tasks(p)
- # SINGLE TASK THREADED ASYNC MODE
- ################################
+ # SINGLE TASK THREADED ASYNC MODE ( 1 thread )
+ ##############################################
# step one gear up - just one thread for now.
p.set_size(1)
assert p.size() == 1
@@ -310,8 +310,8 @@ class TestThreadPool(TestBase):
- # SINGLE TASK ASYNC MODE
- ########################
+ # SINGLE TASK ASYNC MODE ( 2 threads )
+ ######################################
# two threads to compete for a single task
p.set_size(2)
self._assert_single_task(p, True)