$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: RocWood (rocwood_at_[hidden])
Date: 2005-10-03 21:14:54
boost::thread::sleep, IMHO, it's too inconvenient.
I get these example code to sleep 1 second,
{
boost::xtime xt;
boost::xtime_get(&xt, boost::TIME_UTC);
xt.sec += 1; // change xt to next second
boost::thread::sleep(xt);
}
and, only 1 line in another platform(origianl plaform or java)
{
sleep(1000);
}
hmmm...
Too inconvenient, and, to make things worse, quite a heavy calling.
Is there any suggestion for me?
Thanks.