issue #156: log queue size too

pull/167/head
David Wilson 7 years ago
parent 037b461c39
commit 6e368d37da

@ -1001,8 +1001,9 @@ class Latch(object):
def __repr__(self):
rsock = getattr(_tls, 'rsock', None)
wsock = getattr(_tls, 'wsock', None)
return 'Latch(%r, t=%r, r=%r, w=%r)' % (
return 'Latch(%r, size=%d, t=%r, r=%r, w=%r)' % (
id(self),
len(self.queue),
threading.currentThread().name,
rsock and rsock.fileno(),
wsock and wsock.fileno(),

Loading…
Cancel
Save