Package qubx :: Module task :: Class PoolTask
[hide private]
[frames] | no frames]

Class PoolTask

source code

object --+    
         |    
      Task --+
             |
            PoolTask
Known Subclasses:

A worker thread which controls a multiprocessing.Pool of worker processes.

Instance Methods [hide private]
 
__init__(self, label)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
run(self)
Override this method to make the Task thread do something.
source code
 
reset_pool(self)
Terminates and restarts the worker processes.
source code
 
run_with_pool(self, pool)
Override this method to make the worker thread do something.
source code

Inherited from Task: __call__, gui_call_recv, idle_wait, interrupt, join, send_exception, send_progress, send_result, send_status, set_progress, set_status, start, thread_main

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
  pool
a multiprocessing.Pool

Inherited from Task: OnException, OnInterrupt, OnProgress, OnResult, OnStatus, OnTerminate, label, main_hold, progress, status, tid

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, label)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

run(self)

source code 

Override this method to make the Task thread do something.

Overrides: Task.run
(inherited documentation)

reset_pool(self)

source code 

Terminates and restarts the worker processes. Discards any work already in the pool.