Reference documentation for deal.II version 9.3.3
|
Classes | |
struct | maybe_make_ref |
struct | maybe_make_ref< T & > |
struct | return_value |
struct | return_value< RT & > |
struct | return_value< void > |
struct | ThreadDescriptor |
Functions | |
template<typename RT > | |
void | call (const std::function< RT()> &function, internal::return_value< RT > &ret_val) |
void | call (const std::function< void()> &function, internal::return_value< void > &) |
template<typename RT , typename Function > | |
void | evaluate_and_set_promise (Function &function, std::promise< RT > &promise) |
template<typename Function > | |
void | evaluate_and_set_promise (Function &function, std::promise< void > &promise) |
void | handle_std_exception (const std::exception &exc) |
void | handle_unknown_exception () |
|
inline |
Definition at line 386 of file thread_management.h.
|
inline |
Definition at line 394 of file thread_management.h.
void Threads::internal::evaluate_and_set_promise | ( | Function & | function, |
std::promise< RT > & | promise | ||
) |
Set the value of a std::promise object by evaluating the action.
Definition at line 943 of file thread_management.h.
void Threads::internal::evaluate_and_set_promise | ( | Function & | function, |
std::promise< void > & | promise | ||
) |
Set the value of a std::promise object by evaluating the action. This function is a specialization of the previous one for the case where the return type is void
. Consequently, we can't set a value. But we do evaluate the function object and call std::promise::set_value()
without argument.
Definition at line 958 of file thread_management.h.
void Threads::internal::handle_std_exception | ( | const std::exception & | exc | ) |
Definition at line 35 of file thread_management.cc.
void Threads::internal::handle_unknown_exception | ( | ) |
Definition at line 73 of file thread_management.cc.