seq  4.0.0-pre3
Public Member Functions | Public Attributes | List of all members
redthread.Worker Class Reference

Worker thread. More...

Inheritance diagram for redthread.Worker:

Public Member Functions

def __init__ (self, channel_id, parent)
 
def run (self)
 
def finish (self)
 
def new_state_event_function (self, subscription, dataEvent)
 New state event callback. More...
 

Public Attributes

 signals
 
 parent
 
 exit_cond
 
 control_flag
 
 channel_id
 

Detailed Description

Worker thread.

Inherits from QRunnable to handler worker thread setup, signals and wrap-up.

Parameters
callbackThe function callback to run on this worker thread. Supplied args and kwargs will be passed through to the runner.
type of callback: function
argsArguments to pass to the callback function
kwargsKeywords to pass to the callback function

Constructor & Destructor Documentation

◆ __init__()

def redthread.Worker.__init__ (   self,
  channel_id,
  parent 
)

Member Function Documentation

◆ finish()

def redthread.Worker.finish (   self)

◆ new_state_event_function()

def redthread.Worker.new_state_event_function (   self,
  subscription,
  dataEvent 
)

New state event callback.

   This method is called each time new state data has been published. It will emit
   the progress signal with the content of the new state event.

◆ run()

def redthread.Worker.run (   self)

Member Data Documentation

◆ channel_id

redthread.Worker.channel_id

◆ control_flag

redthread.Worker.control_flag

◆ exit_cond

redthread.Worker.exit_cond

◆ parent

redthread.Worker.parent

◆ signals

redthread.Worker.signals

The documentation for this class was generated from the following file: