【发布时间】:2011-02-09 04:27:19
【问题描述】:
我正在尝试完成这样的事情:
thread t; // create/initialize thread
t.launch(); // launch thread.
t.wait(); // wait
t.launch(); // relaunch the same thread
如何使用 boost 线程来实现这样的事情? 本质上,我需要持久的可重新启动线程。
我想避免工作队列,因为在我的案例中实现有点困难
谢谢
【问题讨论】:
标签: c++ multithreading boost