void register_startup_function(
    pika::startup_function_type f)

Description

Add a function to be executed by a pika thread before pika_main but guaranteed after any pre-startup function is executed (system-wide).

//////////////////////////////////////////////////////////////////////// Any of the functions registered with \aare guaranteed to be executed by an pika thread after any of the registered pre-startup functions are executed (see:\abut before \ais being called. This function is one of the few API functions which can be called before the runtime system has been fully initialized. It will automatically stage the provided startup function to the runtime system during its initialization (if necessary).

Declared at: libs/pika/runtime/include/pika/runtime/startup_function.hpp:68

Parameters

pika::startup_function_type f
[in] The function to be registered to run by an pika thread as a startup function.