diff options
Diffstat (limited to 'python/gevent/lock.py')
-rw-r--r-- | python/gevent/lock.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/python/gevent/lock.py b/python/gevent/lock.py index 506d8c5..00bf68c 100644 --- a/python/gevent/lock.py +++ b/python/gevent/lock.py @@ -201,6 +201,9 @@ class DummySemaphore(object): class RLock(object): + """ + A mutex that can be acquired more than once by the same greenlet. + """ def __init__(self): self._block = Semaphore(1) @@ -231,7 +234,7 @@ class RLock(object): def release(self): if self._owner is not getcurrent(): - raise RuntimeError("cannot release un-aquired lock") + raise RuntimeError("cannot release un-acquired lock") self._count = count = self._count - 1 if not count: self._owner = None |