GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • cpprefjp - C++日本語リファレンス
  • GitHub Project

This view

  • Original page
  • New address

GeezerVison is showing cpprefjp.github.io — std::this_thread - cpprefjp C++日本語リファレンス

  1. リファレンス
  2. thread
  3. this_thread

最終更新日時: 2026年09月11日 13時06分31秒 (JST)
Akira Takahashi が更新

履歴 編集

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

処理系

  • Clang:
  • GCC:
  • Visual C++: 2012 ✅, 2013 ✅, 2015 ✅
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.