摘要:
同步Timerasio中提供的timer名为deadline_timer,它提供了超时计时的功能。首先以一个最简单的同步Timer为例来演示如何使用它。#include#includeintmain(){boost::asio::io_serviceio;boost::asio::deadline_... 阅读全文
posted @ 2015-04-27 22:27
Avatarx
阅读(325)
评论(0)
推荐(0)
摘要:
#include#includeintmain(){boost::asio::io_serviceio;boost::asio::deadline_timertimer(io,boost::posix_time::seconds(3));timer.wait();std::coutexpires_a... 阅读全文
posted @ 2015-04-27 22:05
Avatarx
阅读(476)
评论(0)
推荐(0)
摘要:
[cpp]view plaincopystaticconstcharS_FILL[]="cycle_queue_fill_";staticconstcharS_EMPTY[]="cycle_queue_empty_";templateclassCycleQueueT{private:CycleQue... 阅读全文
posted @ 2015-04-27 21:44
Avatarx
阅读(541)
评论(0)
推荐(0)

浙公网安备 33010602011771号