c++ - boost::this_thread::sleep() vs. nanosleep()? - Stack Overflow

c++ - boost::this_thread::sleep() vs. nanosleep()? - Stack Overflow

瀏覽:1438
日期:2026-04-26
The few reasons why use boost that I can think of: boost::this_thread::sleep() is an interruption point in boost.thread boost::this_thread::sleep() can be drop-in replaced by C++0x's std::this_thread::sleep_until() in future For why not -- if you're not u...看更多