Windows: Use 32-bit distribution of python
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user