class documentation

class LockWorker: (source)

View In Hierarchy

An IWorker implemented based on a mutual-exclusion lock.

Method __init__ No summary
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 _local Undocumented
Instance Variable _lock Undocumented
Instance Variable _quit Undocumented
def __init__(self, lock, local): (source)
Parameters
lock:threading.LockA mutual-exclusion lock, with acquire and release methods.
local:threading.localLocal storage.
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.

Parameters
workthe work to do with the lock held.
def quit(self): (source)

Quit this LockWorker.

_local = (source)

Undocumented

_lock = (source)

Undocumented

_quit = (source)

Undocumented