Module thread_classes :: Class RelaxThread
[hide private]
[frames] | no frames]

Class RelaxThread

source code


Instance Methods [hide private]
 
__init__(self, i, job_queue, results_queue, finished_jobs, job_locks)
The base class of all threads in relax.
source code
 
close_all_pipes(self)
Close all the stdin, stdout, and stderr pipes of the child (to flush the buffers).
source code
 
copy_save_file(self)
Function for the once off copying of the temporary results file to the thread's wd.
source code
 
exec_relax(self)
Function for running an instance of relax in threading mode on the host machine.
source code
 
kill(self, print_flag=0)
Attempt to kill the thread.
source code
 
mkdir(self)
Function for creating the directory 'self.tag' in the working directory.
source code
 
pre_locked_code(self)
Generic function for the pre-locked code.
source code
 
remote_command(self, cmd, login_cmd)
Return the string required for either local or remote execution of the command.
source code
 
run(self, expanded_flag=1)
Main function for execution of the specific threading code.
source code
 
start_child(self, cmd, catch_out=0, catch_err=0, remote_exe=1, close=1)
Start the child process and place it in 'self.child'.
source code
 
test_dir(self)
Function for testing if the directory corresponding to tag exists.
source code
 
test_save_file(self)
Function for testing if results file is already copied.
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, i, job_queue, results_queue, finished_jobs, job_locks)
(Constructor)

source code 

The base class of all threads in relax.

Overrides: object.__init__

run(self, expanded_flag=1)

source code 

Main function for execution of the specific threading code.

Overrides: threading.Thread.run