Package rosmaster :: Module threadpool :: Class ThreadPoolThread

Class ThreadPoolThread

source code

        object --+        
                 |        
threading._Verbose --+    
                     |    
      threading.Thread --+
                         |
                        ThreadPoolThread

Pooled thread class.

Instance Methods
 
__init__(self, pool)
Initialize the thread and remember the pool.
source code
 
run(self)
Until told to quit, retrieve the next task and execute it, calling the callback if any.
source code
 
go_away(self)
Exit the run loop next time through.
source code

Inherited from threading.Thread: __repr__, getName, isAlive, isDaemon, is_alive, join, setDaemon, setName, start

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

Class Variables
  threadSleepTime = 0.1
Properties

Inherited from threading.Thread: daemon, ident, name

Inherited from object: __class__

Method Details

__init__(self, pool)
(Constructor)

source code 

Initialize the thread and remember the pool.

Overrides: object.__init__

run(self)

source code 

Until told to quit, retrieve the next task and execute it, calling the callback if any.

Overrides: threading.Thread.run