【Boost】boost庫中thread多線程詳解7——wait與timed_wait簡單例子

namespace { void wait(int seconds) { boost::this_thread::sleep(boost::posix_time::seconds(seconds)); } boost::mutex mu; boost::condition_variable_any cond; void test_wait() { while(true)
相關文章
相關標籤/搜索