f*s
2 楼
it look cheap and support lots of framework, any one ever tried it?
k*l
3 楼
I know there is a sleep(10), 不过这个是等待10秒,如果我的程序本身要比如2~3s
才能完成就得等7~8s,应该有个类似sleep的library 能设定每10s开始运行一次吧,
boost里面有么?谢谢
才能完成就得等7~8s,应该有个类似sleep的library 能设定每10s开始运行一次吧,
boost里面有么?谢谢
z*d
8 楼
using it
works fine now
works fine now
r*r
9 楼
boost::asio. pretty neat stuff.
btw, using select() is not portable.
btw, using select() is not portable.
c*e
11 楼
I am using it now, pretty good so far
t*y
13 楼
web address?
r*r
14 楼
alarm() 's timer is not very accurate. get/setitimer() can be precise up to
microsec.
microsec.
k*l
16 楼
懂boost的人能帮忙看看这段程行么:只要myEngineOn==true; myEngine_run() 每10秒
钟被call一次:
while(myEngineOn){
boost::xtime xt;
boost::xtime_get(&xt, boost::TIME_UTC);
xt.sec+=10;
myEngine_run(); //这个function应该不会超过两秒
boost::thread::sleep(xt);
//这里的意思是睡到xt, 不是睡xt那么长时间---If I understand
}
【在 r*********r 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: boost::asio. pretty neat stuff.
: btw, using select() is not portable.
钟被call一次:
while(myEngineOn){
boost::xtime xt;
boost::xtime_get(&xt, boost::TIME_UTC);
xt.sec+=10;
myEngine_run(); //这个function应该不会超过两秒
boost::thread::sleep(xt);
//这里的意思是睡到xt, 不是睡xt那么长时间---If I understand
}
【在 r*********r 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: boost::asio. pretty neat stuff.
: btw, using select() is not portable.
相关阅读
about ManifestUNIX script匹配问题stats output of regress in matlaballoc这个函数究竟做些啥活呢?Microsoft Visual studio 2005 professional 版本和standard版本的区别Please help: regarding ftp scripting in Windows xp Command promptQuestion of building apache module.请教一个python 问题[合集] singleton and staticMatlab legend 里如何删除一组数据?just saw a question初学C,对什么该free一直搞不明白python question一个VC++的问题【求】有人能转让这几本Unix Shell的书么? (转载)Question: Given a pointer to a function[求助]Metlab做adaptive filter的问题关于multi threadunix shell一问cannot trace var values in vs2005