Reference documentation for deal.II version 9.4.1
|
Public Member Functions | |
TaskData (std::future< RT > &&future) noexcept | |
TaskData (const TaskData &)=delete | |
TaskData (TaskData &&)=delete | |
TaskData & | operator= (const TaskData &)=delete |
TaskData & | operator= (TaskData &&)=delete |
~TaskData () noexcept | |
void | wait () |
internal::return_value< RT >::reference_type | get () |
Private Attributes | |
std::mutex | mutex |
std::future< RT > | future |
std::atomic< bool > | task_has_finished |
internal::return_value< RT > | returned_object |
tbb::task_group | task_group |
Friends | |
class | Task< RT > |
A data structure that holds a std::future into which the task deposits its return value. Since one can only call std::future::get() once, we do so in the get() member function and then move the returned object into the returned_object
member variable from where we can read it multiple times and from where it can also be moved away if it is not copyable.
Definition at line 1313 of file thread_management.h.