hpx/runtime_local/component_startup_shutdown_base.hpp#

Defined in header hpx/runtime_local/component_startup_shutdown_base.hpp.

See Public API for a list of names and headers that are part of the public HPX API.

namespace hpx
namespace components
struct component_startup_shutdown_base#
#include <component_startup_shutdown_base.hpp>

The component_startup_shutdown_base has to be used as a base class for all component startup/shutdown registries.

Public Functions

virtual ~component_startup_shutdown_base() = default#
virtual bool get_startup_function(startup_function_type &startup, bool &pre_startup) = 0#

Return any startup function for this component.

Parameters
  • startup – [in, out] The module is expected to fill this function object with a reference to a startup function. This function will be executed by the runtime system during system startup.

  • pre_startup – [in, out] Will be set to true if the returned startup function is executed during the first round of calls.

Returns

Returns true if the parameter startup has been successfully initialized with the startup function.

virtual bool get_shutdown_function(shutdown_function_type &shutdown, bool &pre_shutdown) = 0#

Return any startup function for this component.

Parameters
  • shutdown – [in, out] The module is expected to fill this function object with a reference to a startup function. This function will be executed by the runtime system during system startup.

  • pre_shutdown – [in, out] Will be set to true if the returned shutdown function is executed during the first round of calls.

Returns

Returns true if the parameter shutdown has been successfully initialized with the shutdown function.