HPX - High Performance ParalleX

PrevUpHomeNext

Function disconnect

hpx::disconnect — Disconnect this locality from the application.

Synopsis

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


int disconnect(error_code & ec = throws);

Description

The function hpx::disconnect can be used to disconnect a locality from a running HPX application.

During the execution of this function the runtime system will invoke all registered shutdown functions (see hpx::init) on this locality.

[Note] Note

As long as ec is not pre-initialized to hpx::throws this function doesn't throw but returns the result code using the parameter ec. Otherwise it throws an instance of hpx::exception.

This function will block and wait for this locality to finish executing before returning to the caller. It should be the last HPX-function called by any locality being disconnected.

Parameters:

ec

[in,out] this represents the error status on exit, if this is pre-initialized to hpx::throws the function will throw on error instead.

Returns:

This function will always return zero.


PrevUpHomeNext