|
|
@ -1001,8 +1001,9 @@ class Latch(object):
|
|
|
|
def __repr__(self):
|
|
|
|
def __repr__(self):
|
|
|
|
rsock = getattr(_tls, 'rsock', None)
|
|
|
|
rsock = getattr(_tls, 'rsock', None)
|
|
|
|
wsock = getattr(_tls, 'wsock', 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),
|
|
|
|
id(self),
|
|
|
|
|
|
|
|
len(self.queue),
|
|
|
|
threading.currentThread().name,
|
|
|
|
threading.currentThread().name,
|
|
|
|
rsock and rsock.fileno(),
|
|
|
|
rsock and rsock.fileno(),
|
|
|
|
wsock and wsock.fileno(),
|
|
|
|
wsock and wsock.fileno(),
|
|
|
|