次の方法で共有


sleep_until 関数

呼び出し元スレッドを少なくとも一つ指定した時間までブロックします。

template<class Clock, class Duration>
    void sleep_until(const chrono::time_point<Clock, Duration>& Abs_time);
void sleep_until(const xtime *Abs_time);

パラメーター

  • Abs_time
    時点を表します。

解説

この関数は例外をスローしません。

必要条件

ヘッダー: のスレッド

名前空間: の std::this_thread

参照

関連項目

<thread>

time_point クラス

その他の技術情報

ヘッダー ファイル