twisted._threads.LockWorker(object) class documentationtwisted._threads
View Source
(View In Hierarchy)
Implements interfaces: twisted._threads._ithreads.IExclusiveWorker
An IWorker
implemented based on a mutual-exclusion lock.
| Method | __init__ | |
| Method | do | Do the given work on this thread, with the mutex acquired. If this is called re-entrantly, return and wait for the outer invocation to do the work. |
| Method | quit | Quit this LockWorker. |
| Parameters | lock | A mutual-exclusion lock, with acquire and release
methods. (type: threading.Lock) |
| local | Local storage. (type: threading.local) |
Do the given work on this thread, with the mutex acquired. If this is called re-entrantly, return and wait for the outer invocation to do the work.
| Parameters | work | the work to do with the lock held. |