summaryrefslogtreecommitdiff
path: root/lib/git/async/util.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-06-09 15:29:47 +0200
committerSebastian Thiel <byronimo@gmail.com>2010-06-09 15:29:47 +0200
commit57a4e09294230a36cc874a6272c71757c48139f2 (patch)
treee77cc49b66cacae91400ba1eaa7856ce367fc1a6 /lib/git/async/util.py
parent0974f8737a3c56a7c076f9d0b757c6cb106324fb (diff)
downloadgitpython-57a4e09294230a36cc874a6272c71757c48139f2.tar.gz
Channel: removed pseudoconstructor, which clearly improves the design and makes it easier to constomize
pool: in serial mode, created channels will be serial-only, which brings 15% of performance
Diffstat (limited to 'lib/git/async/util.py')
-rw-r--r--lib/git/async/util.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/git/async/util.py b/lib/git/async/util.py
index 2f46d55f..00d0dbab 100644
--- a/lib/git/async/util.py
+++ b/lib/git/async/util.py
@@ -66,7 +66,14 @@ class SyncQueue(deque):
def empty(self):
return len(self) == 0
- put = deque.append
+ def set_writable(self, state):
+ pass
+
+ def writable(self):
+ return True
+
+ def put(self, item, block=True, timeout=None):
+ self.append(item)
class HSCondition(deque):