Commit 05ad571c authored by Michael Hanselmann's avatar Michael Hanselmann

locking.SharedLock: Update class docstring

This was already outdated when the initial version of SharedLock was added
in commit 162c1c1f (February 2008).
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent f9b87434
......@@ -409,9 +409,9 @@ class PipeCondition(_BaseCondition):
class SharedLock(object):
"""Implements a shared lock.
Multiple threads can acquire the lock in a shared way, calling
acquire_shared(). In order to acquire the lock in an exclusive way threads
can call acquire_exclusive().
Multiple threads can acquire the lock in a shared way by calling
C{acquire(shared=1)}. In order to acquire the lock in an exclusive way
threads can call C{acquire(shared=0)}.
The lock prevents starvation but does not guarantee that threads will acquire
the shared lock in the order they queued for it, just that they will
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment