diff options
author | James Taylor <user234683@users.noreply.github.com> | 2018-09-14 19:32:27 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2018-09-14 19:32:27 -0700 |
commit | 4212164e91ba2f49583cf44ad623a29b36db8f77 (patch) | |
tree | 47aefe3c0162f03e0c823b43873356f69c1cd636 /python/gevent/lock.py | |
parent | 6ca20ff7010f2bafc7fefcb8cad982be27a8aeae (diff) | |
download | yt-local-4212164e91ba2f49583cf44ad623a29b36db8f77.tar.lz yt-local-4212164e91ba2f49583cf44ad623a29b36db8f77.tar.xz yt-local-4212164e91ba2f49583cf44ad623a29b36db8f77.zip |
Windows: Use 32-bit distribution of python
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 |