(0.8.0)
parallel\Runtime::__construct — Runtime Construction
Shall construct a new runtime without bootstrapping or configuration.
$bootstrap
)Shall construct a bootstrapped runtime, it is recommended to use a bootstrap, and it should generally be an autoloader.
$configuration
)Shall construct a new runtime without bootstraping and configure it using the given configuration. It may be sensible to pass the result of a call to \ini_get_all() as configuration.
$bootstrap
, array $configuration
)Shall construct a new bootstrapped runtime and configure it using the given configuration. It may be sensible to pass the result of a call to \ini_get_all() as configuration.
bootstrap
The location of a bootstrap file, generally the location of an autoloader.
configuration
INI configuration options
Shall throw \parallel\Exception if arguments are invalid
Shall throw \parallel\Exception if bootstrapping failed
Shall throw \parallel\Exception if the thread could not be created