| 672 | */ |
| 673 | template<typename SecondaryFunction> |
| 674 | static bool launch_run(std::shared_ptr<TimerThread<Duration>> pThis, |
| 675 | SecondaryFunction secondary_function) { |
| 676 | return ThreadGroup::Thread::launch(pThis, true, [](std::shared_ptr<TimerThread<Duration>> pThis, |
| 677 | SecondaryFunction secondary_function) { |
| 678 | return pThis->run(secondary_function); |
| 679 | }, |
| 680 | pThis, secondary_function); |
| 681 | } |
| 682 | |
| 683 | /*! |
| 684 | * \brief Start a given timer thread |