Rosetta 3.3
|
Public Member Functions | |
def | __init__ |
def | fork |
def | add |
def | wait |
def | exit_slave |
Public Attributes | |
max_slaves | |
slaves | |
bad | |
ismaster | |
incremental_output | |
only_output_bad | |
time_limit | |
errorre |
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.
def rosetta_py::utility::ForkManager::ForkManager::__init__ | ( | self, | |
max_slaves = 1 , |
|||
incremental_output = False , |
|||
only_output_bad = False , |
|||
time_limit = 0 , |
|||
error_output = [] |
|||
) |
def rosetta_py::utility::ForkManager::ForkManager::add | ( | self, | |
slave | |||
) |
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 process
def rosetta_py::utility::ForkManager::ForkManager::fork | ( | self, | |
name | |||
) |
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