Change SharedLock to new pipe(2)-based condition
authorMichael Hanselmann <hansmi@google.com>
Mon, 28 Sep 2009 15:44:19 +0000 (17:44 +0200)
committerMichael Hanselmann <hansmi@google.com>
Wed, 30 Sep 2009 15:35:54 +0000 (17:35 +0200)
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>

lib/locking.py

index 901fdac..ea1f2cc 100644 (file)
@@ -409,7 +409,7 @@ class SharedLock(object):
     "__shr",
     ]
 
-  __condition_class = _CountingCondition
+  __condition_class = _PipeCondition
 
   def __init__(self):
     """Construct a new SharedLock.