From 1090701721888474d34f8a4af28ee1bb1c3fdaaa Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 9 Jun 2010 11:35:41 +0200 Subject: 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 --- test/git/async/test_pool.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/git/async') 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) -- cgit v1.2.3