twisted._threads.test.test_threadworker.FakeLock(object)
class documentationtwisted._threads.test.test_threadworker
(View In Hierarchy)
A stand-in for threading.Lock
.
Instance Variable | acquired | Whether this lock is presently acquired. |
Method | __init__ | Create a lock in the un-acquired state. |
Method | acquire | Acquire the lock. Raise an exception if the lock is already acquired. |
Method | release | Release the lock. Raise an exception if the lock is not presently acquired. |