Package tacval :: Package hardware :: Module scan_thread :: Class ScanThread
[hide private]
[frames] | no frames]

Class ScanThread

source code

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

scan thread loops continuously either removing items from the queue or if the queue is empty repopulating the queue

Instance Methods [hide private]
 
__init__(self, parent)
initiate the scan thread set the parent and force a repopulate save reference to parents queue
source code
 
kill(self) source code
 
run(self)
called by Thread.start loops continuously processing items in the queue
source code
 
process_queue_item(self) source code

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

Inherited from threading.Thread (private): _set_daemon

Inherited from threading._Verbose (private): _note

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, parent)
(Constructor)

source code 

initiate the scan thread set the parent and force a repopulate save reference to parents queue

use default scan_rate = 0.1

Overrides: object.__init__

run(self)

source code 

called by Thread.start loops continuously processing items in the queue

Overrides: threading.Thread.run