HPX - High Performance ParalleX

PrevUpHomeNext

Function get_num_localities

hpx::get_num_localities — Asynchronously return the number of localities which are currently registered for the running application.

Synopsis

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


lcos::future< boost::uint32_t > get_num_localities();

Description

The function get_num_localities asynchronously returns the number of localities currently connected to the console. The returned future represents the actual result.

[Note] Note

This function will return meaningful results only if called from an HPX-thread. It will return 0 otherwise.

See Also:

hpx::find_all_localities, hpx::get_num_localities


PrevUpHomeNext