mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-02 11:58:21 +08:00
fxied TimerManager 外部工作组构造
This commit is contained in:
parent
bf6b2b7d16
commit
031f63bece
@ -43,7 +43,10 @@ public:
|
||||
* 指定线程池方式构造,以便共享其他线程池
|
||||
* @param tg 指定任务组线程池
|
||||
*/
|
||||
TimerManager(const std::shared_ptr<ThreadPool>& tg) : m_tg(tg) {}
|
||||
TimerManager(const std::shared_ptr<ThreadPool>& tg)
|
||||
: m_stop(true), m_current_timer_id(-1), m_work_num(1), m_tg(tg) {
|
||||
start();
|
||||
}
|
||||
|
||||
/** 析构函数 */
|
||||
~TimerManager() {
|
||||
|
Loading…
Reference in New Issue
Block a user