hpx/threading_base/callback_notifier.hpp

See Public API for a list of names and headers that are part of the public HPX API.

namespace hpx
namespace threads
namespace policies
class callback_notifier

Public Types

typedef hpx::function<void(std::size_t, std::size_t, char const*, char const*)> on_startstop_type
typedef hpx::function<bool(std::size_t, std::exception_ptr const&)> on_error_type

Public Functions

callback_notifier()
void on_start_thread(std::size_t local_thread_num, std::size_t global_thread_num, char const *pool_name, char const *postfix) const
void on_stop_thread(std::size_t local_thread_num, std::size_t global_thread_num, char const *pool_name, char const *postfix) const
bool on_error(std::size_t global_thread_num, std::exception_ptr const &e) const
void add_on_start_thread_callback(on_startstop_type const &callback)
void add_on_stop_thread_callback(on_startstop_type const &callback)
void set_on_error_callback(on_error_type const &callback)

Public Members

std::deque<on_startstop_type> on_start_thread_callbacks_
std::deque<on_startstop_type> on_stop_thread_callbacks_
on_error_type on_error_