summaryrefslogtreecommitdiff
path: root/lib/git/async/thread.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-06-07 10:38:22 +0200
committerSebastian Thiel <byronimo@gmail.com>2010-06-07 10:38:22 +0200
commita8a448b7864e21db46184eab0f0a21d7725d074f (patch)
treee8bd0c6a27d4c611a0a380dabf894f67b8907566 /lib/git/async/thread.py
parent6a252661c3bf4202a4d571f9c41d2afa48d9d75f (diff)
downloadgitpython-a8a448b7864e21db46184eab0f0a21d7725d074f.tar.gz
pool.consumed_tasks: is now a queue to be thread safe, in preparation for multiple connected pools
Reduced waiting time in tests to make them complete faster
Diffstat (limited to 'lib/git/async/thread.py')
-rw-r--r--lib/git/async/thread.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/git/async/thread.py b/lib/git/async/thread.py
index 0292289d..2ed002e9 100644
--- a/lib/git/async/thread.py
+++ b/lib/git/async/thread.py
@@ -115,6 +115,11 @@ class WorkerThread(TerminatableThread):
"""
__slots__ = ('inq', 'outq')
+
+ # define how often we should check for a shutdown request in case our
+ # taskqueue is empty
+ shutdown_check_time_s = 0.5
+
def __init__(self, inq = None):
super(WorkerThread, self).__init__()
self.inq = inq or Queue.Queue()