Rosetta 3.3
Public Member Functions | Public Attributes
rosetta_py::utility::ForkManager::ForkManager Class Reference

List of all members.

Public Member Functions

def __init__
def fork
def add
def wait
def exit_slave

Public Attributes


Detailed Description

If the master python process does not output to a terminal (i.e. it is
run from a script or is redirected to a file), then you must run it in
unbuffered mode (i.e. python -u) so that the forked slave processes can
have their output captured correctly.

Constructor & Destructor Documentation

def rosetta_py::utility::ForkManager::ForkManager::__init__ (   self,
  max_slaves = 1,
  incremental_output = False,
  only_output_bad = False,
  time_limit = 0,
  error_output = [] 

Member Function Documentation

def rosetta_py::utility::ForkManager::ForkManager::add (   self,
Add a slave, this is usually called by fork() and not by user code
def rosetta_py::utility::ForkManager::ForkManager::exit_slave (   self,
  status = 0 
Exit from a slave process. Does nothing when called from the master
def rosetta_py::utility::ForkManager::ForkManager::fork (   self,
Fork the current process. Returns true if we are now in a slave
process or if max_slaves is set to 0 (in which case no forking
happens). Otherwise, returns false to the master process after there is
at least one less than the maximum number of slaves. Note that for code
brevity, the output of this command is the inverse of the usual fork()
that returns true to the master and false to the slave.
def rosetta_py::utility::ForkManager::ForkManager::wait (   self,
  num_slaves = 0 
Pause execution until the number of slaves running is less than or
equal to num_slaves

Member Data Documentation

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines