HPX - High Performance ParalleX

PrevUpHomeNext

Function register_shutdown_function

hpx::register_shutdown_function — Add a function to be executed by a HPX thread during hpx::finalize() but guaranteed after any pre-shutdown function is executed (system-wide)

Synopsis

// In header: <hpx/hpx_fwd.hpp>


void register_shutdown_function(shutdown_function_type const & f);

Description

Any of the functions registered with register_shutdown_function are guaranteed to be executed by an HPX thread during the execution of hpx::finalize() after any of the registered pre-shutdown functions are executed (see: hpx::register_pre_shutdown_function()).

[Note] Note

If this function is called while the shutdown functions are being executed, or after that point, it will raise a invalid_status exception.

See Also:

hpx::register_pre_shutdown_function()

Parameters:

f

[in] The function to be registered to run by an HPX thread as a shutdown function.


PrevUpHomeNext