主线程:
boost::thread::sleep(boost::get_system_time() + boost::posix_time::seconds(5));
子线程:
boost::this_thread::sleep(boost::get_system_time() + boost::posix_time::seconds(2));
主线程:
boost::thread::sleep(boost::get_system_time() + boost::posix_time::seconds(5));
子线程:
boost::this_thread::sleep(boost::get_system_time() + boost::posix_time::seconds(2));