diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-06-09 21:19:54 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-06-09 21:19:54 +0200 |
commit | 257a8a9441fca9a9bc384f673ba86ef5c3f1715d (patch) | |
tree | d9b21a498ee7c2fe5f19951228c81214988db00a /lib/git/async/task.py | |
parent | 365fb14ced88a5571d3287ff1698582ceacd80d6 (diff) | |
download | gitpython-257a8a9441fca9a9bc384f673ba86ef5c3f1715d.tar.gz |
test: prepared task dependency test, which already helped to find bug in the reference counting mechanism, causing references to the pool to be kepts via cycles
Diffstat (limited to 'lib/git/async/task.py')
-rw-r--r-- | lib/git/async/task.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/git/async/task.py b/lib/git/async/task.py index f98336b2..03b40492 100644 --- a/lib/git/async/task.py +++ b/lib/git/async/task.py @@ -208,5 +208,8 @@ class InputChannelTask(OutputChannelTask): OutputChannelTask.__init__(self, *args, **kwargs) self._read = in_rc.read - #{ Configuration - + def rchannel(self): + """:return: input channel from which we read""" + # the instance is bound in its instance method - lets use this to keep + # the refcount at one ( per consumer ) + return self._read.im_self |