class callback_notifier
Declaration
class callback_notifier { /* full declaration omitted */ };Declared at: libs/pika/threading_base/include/pika/threading_base/callback_notifier.hpp:20
Member Variables
- public std::deque<on_startstop_type> on_start_thread_callbacks_
- public std::deque<on_startstop_type> on_stop_thread_callbacks_
- public pika::threads::policies::callback_notifier:: on_error_type on_error_
Method Overview
- public void add_on_start_thread_callback(const pika::threads::policies::callback_notifier::on_startstop_type & callback)
- public void add_on_stop_thread_callback(const pika::threads::policies::callback_notifier::on_startstop_type & callback)
- public callback_notifier()
- public bool on_error(std::size_t global_thread_num, const std::exception_ptr & e) const
- public void on_start_thread(std::size_t local_thread_num, std::size_t global_thread_num, const char * pool_name, const char * postfix) const
- public void on_stop_thread(std::size_t local_thread_num, std::size_t global_thread_num, const char * pool_name, const char * postfix) const
- public void set_on_error_callback(const pika::threads::policies::callback_notifier::on_error_type & callback)
Methods
void add_on_start_thread_callback(
const pika::threads::policies::
callback_notifier::on_startstop_type&
callback)
void add_on_start_thread_callback(
const pika::threads::policies::
callback_notifier::on_startstop_type&
callback)Declared at: libs/pika/threading_base/include/pika/threading_base/callback_notifier.hpp:73
Parameters
- const pika::threads::policies::callback_notifier:: on_startstop_type& callback
void add_on_stop_thread_callback(
const pika::threads::policies::
callback_notifier::on_startstop_type&
callback)
void add_on_stop_thread_callback(
const pika::threads::policies::
callback_notifier::on_startstop_type&
callback)Declared at: libs/pika/threading_base/include/pika/threading_base/callback_notifier.hpp:78
Parameters
- const pika::threads::policies::callback_notifier:: on_startstop_type& callback
callback_notifier()
callback_notifier()Declared at: libs/pika/threading_base/include/pika/threading_base/callback_notifier.hpp:28
bool on_error(std::size_t global_thread_num,
const std::exception_ptr& e) const
bool on_error(std::size_t global_thread_num,
const std::exception_ptr& e) constDeclared at: libs/pika/threading_base/include/pika/threading_base/callback_notifier.hpp:63
Parameters
- std::size_t global_thread_num
- const std::exception_ptr& e
void on_start_thread(
std::size_t local_thread_num,
std::size_t global_thread_num,
const char* pool_name,
const char* postfix) const
void on_start_thread(
std::size_t local_thread_num,
std::size_t global_thread_num,
const char* pool_name,
const char* postfix) constDeclared at: libs/pika/threading_base/include/pika/threading_base/callback_notifier.hpp:35
Parameters
- std::size_t local_thread_num
- std::size_t global_thread_num
- const char* pool_name
- const char* postfix
void on_stop_thread(std::size_t local_thread_num,
std::size_t global_thread_num,
const char* pool_name,
const char* postfix) const
void on_stop_thread(std::size_t local_thread_num,
std::size_t global_thread_num,
const char* pool_name,
const char* postfix) constDeclared at: libs/pika/threading_base/include/pika/threading_base/callback_notifier.hpp:49
Parameters
- std::size_t local_thread_num
- std::size_t global_thread_num
- const char* pool_name
- const char* postfix
void set_on_error_callback(
const pika::threads::policies::
callback_notifier::on_error_type&
callback)
void set_on_error_callback(
const pika::threads::policies::
callback_notifier::on_error_type&
callback)Declared at: libs/pika/threading_base/include/pika/threading_base/callback_notifier.hpp:83
Parameters
- const pika::threads::policies::callback_notifier:: on_error_type& callback