HPX

PrevUpHomeNext

Header <hpx/runtime_fwd.hpp>

namespace hpx {
  bool register_thread(runtime *, char const *, error_code & = throws);
  void unregister_thread(runtime *);

  // The function get_locality returns a reference to the locality prefix. 
  naming::gid_type const & get_locality();
  std::size_t get_runtime_instance_number();

  // Register a function to be called during system shutdown. 
  bool register_on_exit(util::function_nonser< void()> const &);
  bool is_starting();
  bool is_running();
  bool is_stopped();
  bool is_stopped_or_shutting_down();
  std::size_t get_num_worker_threads();
  std::uint64_t get_system_uptime();
  void start_active_counters(error_code & = throws);
  void reset_active_counters(error_code & = throws);
  void stop_active_counters(error_code & = throws);
  void evaluate_active_counters(bool = false, char const * = nullptr, 
                                error_code & = throws);
  serialization::binary_filter * 
  create_binary_filter(char const *, bool, 
                       serialization::binary_filter * = nullptr, 
                       error_code & = throws);
}

PrevUpHomeNext