最終更新日時(UTC):
が更新

履歴 編集

namespace
<thread>

std::this_thread(C++11)

名前空間 std::this_thread では現在のスレッドに対する制御関数を提供する。

namespace std {
namespace this_thread {

thread::id get_id() noexcept;

void yield() noexcept;

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

template <class Rep, class Period>
void sleep_for(const chrono::duration<Rep, Period>& rel_time);
}}

名前 説明 対応バージョン
get_id 現スレッドのスレッド識別子を取得する (function) C++11
yield 処理系に再スケジュールの機会を与える (function) C++11
sleep_until 指定した絶対時刻を過ぎるまで現スレッドをブロックする (function template) C++11
sleep_for 指定した相対時間だけ現スレッドをブロックする (function template) C++11

バージョン

言語

  • C++11

処理系