class documentation

class twisted._threads.LockWorker: (source)

Implements interfaces: twisted._threads._ithreads.IExclusiveWorker

View In Hierarchy

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.
Instance Variable _quit Undocumented
Instance Variable _lock Undocumented
Instance Variable _local Undocumented
def __init__(self, lock, local): (source)
ParameterslockA mutual-exclusion lock, with acquire and release methods. (type: threading.Lock)
localLocal storage. (type: threading.local)
_quit = (source)

Undocumented

_lock = (source)

Undocumented

_local = (source)

Undocumented

def do(self, work): (source)

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.

Parametersworkthe work to do with the lock held.
def quit(self): (source)
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.