
23 Nov
2007
23 Nov
'07
4:09 p.m.
v2cechura wrote:
boost::xtime xt = {2}; boost::thread::sleep(xt);
I presume that you want this to sleep for 2 seconds. I doubt that this is the reason why your program crashes, but note that xtime should be an absolute time, not relative (at least, in the version that I'm using). You need something like: struct boost::xtime xt; xtime_get(&xt, boost::TIME_UTC); xt.sec += 2; boost::thread::sleep(xt); Phil.