1 #ifndef jb_detail_thread_setup_wrapper_hpp 2 #define jb_detail_thread_setup_wrapper_hpp 21 template <
typename Callable>
32 }
catch (std::exception
const& ex) {
34 <<
" in thread reconfiguration";
37 <<
" in thread reconfiguration";
49 template <
typename Callable>
58 #endif // jb_detail_thread_setup_wrapper_hpp thread_setup_wrapper(jb::thread_config const &config, Callable &&c)
jb::thread_config config_
virtual void operator()()
Hold the configuration to initialize threads.
Hold data to startup a thread in JayBeams.
void reconfigure_this_thread(thread_config const &config)
Change the current thread parameters based on the configuration.
std::shared_ptr< Callable > callable_
The top-level namespace for the JayBeams library.
thread_setup_wrapper< Callable > make_thread_setup_wrapper(thread_config const &config, Callable &&c)
Create the right type of thread_setup_wrapper<>.