GRASS Programmer's Manual  6.4.4(2014)-r
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
gcmd.CommandThread Class Reference

Create separate thread for command. More...

Inheritance diagram for gcmd.CommandThread:
Collaboration diagram for gcmd.CommandThread:

Public Member Functions

def __init__
 
def __del__
 
def run
 Run command. More...
 
def abort
 Abort running process, used by main thread to signal an abort. More...
 

Data Fields

 cmd
 
 stdin
 
 stdout
 
 stderr
 
 env
 
 module
 
 error
 
 aborted
 
 message_format
 
 startTime
 

Detailed Description

Create separate thread for command.

Used for commands launched on the background.

Definition at line 481 of file gcmd.py.

Constructor & Destructor Documentation

def gcmd.CommandThread.__init__ (   self,
  cmd,
  env = None,
  stdin = None,
  stdout = sys.stdout,
  stderr = sys.stderr 
)
@param cmd command (given as list)
@param env environmental variables
@param stdin standard input stream 
@param stdout redirect standard output or None
@param stderr redirect standard error output or None

Definition at line 485 of file gcmd.py.

def gcmd.CommandThread.__del__ (   self)

Definition at line 513 of file gcmd.py.

References gcmd.CommandThread.message_format.

Member Function Documentation

def gcmd.CommandThread.abort (   self)

Abort running process, used by main thread to signal an abort.

Definition at line 608 of file gcmd.py.

References gcmd.CommandThread._want_abort, and gcmd.RunCommand().

def gcmd.CommandThread.run (   self)

Run command.

Definition at line 519 of file gcmd.py.

References gcmd.Command.cmd, and gcmd.CommandThread.cmd.

Field Documentation

gcmd.CommandThread.aborted

Definition at line 505 of file gcmd.py.

gcmd.CommandThread.env

Definition at line 499 of file gcmd.py.

Referenced by render.Map.GetWindow().

gcmd.CommandThread.error

Definition at line 502 of file gcmd.py.

Referenced by workspace.ProcessGrcFile.read().

gcmd.CommandThread.message_format

Definition at line 510 of file gcmd.py.

Referenced by gcmd.CommandThread.__del__().

gcmd.CommandThread.module

Definition at line 501 of file gcmd.py.

gcmd.CommandThread.startTime

Definition at line 526 of file gcmd.py.

gcmd.CommandThread.stderr

Definition at line 498 of file gcmd.py.

gcmd.CommandThread.stdin

Definition at line 496 of file gcmd.py.

Referenced by gcmd.Popen.send().

gcmd.CommandThread.stdout

Definition at line 497 of file gcmd.py.


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