![]() |
hpx::start — Main non-blocking entry point for launching the HPX runtime system.
// In header: <hpx/hpx_start.hpp> bool start(std::vector< std::string > const & cfg, hpx::runtime_mode mode = hpx::runtime_mode_default);
This is a simplified main, non-blocking entry point, which can be used to set up the runtime for an HPX application (the runtime system will be set up in console mode or worker mode depending on the command line settings). It will return immediatly after that. Use hpx::wait
and hpx::stop
to synchronize with the runtime system's execution.
![]() |
Note |
---|---|
The created runtime system instance will be executed in console or worker mode depending on the command line arguments passed in If no command line arguments are passed the HPX runtime system will not support any of the default command line options as described in the section 'HPX Command Line Options'. |
Parameters: |
|
||||
Returns: |
The function returns true if command line processing succeeded and the runtime system was started successfully. It will return false otherwise. |