![]() |
hpx::get_num_localities_sync — Return the number of localities which are currently registered for the running application.
// In header: <hpx/hpx_fwd.hpp> boost::uint32_t get_num_localities_sync(error_code & ec = throws);
The function get_num_localities returns the number of localities currently connected to the console.
![]() |
Note |
---|---|
This function will return meaningful results only if called from an HPX-thread. It will return 0 otherwise. 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 |
See Also:
hpx::find_all_localities_sync, hpx::get_num_localities