lsst.ctrl.pool g6ea9deef35+14991ea556
|
Public Member Functions | |
def | __init__ (self, reducer, initial=None, sleep=0.1) |
Constructor. More... | |
def | run (self) |
def | add (self, data) |
def | join (self) |
Thread to do reduction of results "A thread?", you say. "What about the python GIL?" Well, because we 'sleep' when there's no immediate response from the slaves, that gives the thread a chance to fire; and threads are easier to manage (e.g., shared memory) than a process.
def lsst.ctrl.pool.pool.ReductionThread.__init__ | ( | self, | |
reducer, | |||
initial = None , |
|||
sleep = 0.1 |
|||
) |
def lsst.ctrl.pool.pool.ReductionThread.add | ( | self, | |
data | |||
) |
def lsst.ctrl.pool.pool.ReductionThread.join | ( | self | ) |
def lsst.ctrl.pool.pool.ReductionThread.run | ( | self | ) |