1
を後押し++。 boost :: xtimeを使用すると、秒の整数を待つことができます:Cは、私はブーストスレッドで1.5秒を待ちたいスレッドの遅延
// Block on the queue/wait for data for up two seconds.
boost::xtime_get(&xt, boost::TIME_UTC);
xt.sec++;
xt.sec++;
....
_condition.timed_wait(_mutex, xt)
どうすれば1.5秒待つことができますか?
である第二の追加機能しない、次のでしょう。 – GregC