libjmmcg
build_2783
A C++ library containing an eclectic mix of useful, advanced components.
|
Used by the library to implicitly generate a closure from the InpWk type. More...
#include <thread_pool.hpp>
Used by the library to implicitly generate a closure from the InpWk type.
Definition at line 186 of file thread_pool.hpp.
typedef private_::create_direct<pool_traits_type, InpWk, FnType, &std::remove_reference<InpWk>::type::process> jmmcg::ppd::private_::sequential_pool< DM, Ps, P >::create_direct< InpWk, FnType >::base_t |
Definition at line 187 of file thread_pool.hpp.
using jmmcg::ppd::private_::sequential_pool< DM, Ps, P >::create_direct< InpWk, FnType >::closure_t = typename base_t::closure_t |
Definition at line 189 of file thread_pool.hpp.
typedef private_::execution_context_stack_type<pool_traits::work_distribution_mode_t::one_thread_distributes<>, pool_traits_type::result_traits_, sequential_pool, InpWk> jmmcg::ppd::private_::sequential_pool< DM, Ps, P >::create_direct< InpWk, FnType >::execution_context_stack |
This is a useful typedef to get at the execution_context.
The execution_context is created by joinably transferring work into the pool. It has various uses, but is primarily used to atomically and synchronously wait on the results of the work on the closure_base-derived closure-derived object, as specified by the thread_wk_t object transferred into the pool. But it can also pass back specified exceptions that may be thrown by the work. It can also be used to asynchronously test if the work has been completed, and delete the work from the pool, if it has not been started.
Definition at line 199 of file thread_pool.hpp.
typedef base_t::process_fn_traits jmmcg::ppd::private_::sequential_pool< DM, Ps, P >::create_direct< InpWk, FnType >::process_fn_traits |
Definition at line 188 of file thread_pool.hpp.
typedef process_fn_traits::result_type jmmcg::ppd::private_::sequential_pool< DM, Ps, P >::create_direct< InpWk, FnType >::result_type |
Definition at line 190 of file thread_pool.hpp.