2015-04-06 36 views

回答

1

Boost.Fiber具有睡眠功能。看到如下:

https://github.com/olk/boost-fiber

Boost.Fiber是螺紋接口Boost.Coroutine的包裝。

// <boost/fiber/operations.hpp> 
namespace boost { 
namespace this_fiber { 
void sleep_until(fibers::clock_type::time_point const& sleep_time); 

template< typename Rep, typename Period > 
void sleep_for(chrono::duration< Rep, Period > const& timeout_duration) 
}} 
相關問題