エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
c++ std::asyncで非同期実行 - yamasvの日記
記事へのコメント0件
- 人気コメント
- 新着コメント
このエントリーにコメントしてみましょう。
人気コメント算出アルゴリズムの一部にヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
関連記事
c++ std::asyncで非同期実行 - yamasvの日記
std::asyncで関数の非同期実行ができる。 std::asyncの戻り値であるfutureを使って、 関数の実行終了を... std::asyncで関数の非同期実行ができる。 std::asyncの戻り値であるfutureを使って、 関数の実行終了を待つ (wait) 関数の実行終了をタイムアウト時間指定で待つ (wait_for) 関数の実行結果を受け取る (get) ことができる。 また、std::asyncの実行ポリシーによって 別スレッドで実行する すぐには実行せず、後で実行する ことができる。 #include <iostream> #include <future> #include <chrono> using namespace std::literals; int main()123; 123; std::cout << "start " << std::chrono::system_clock::now() << '\n'; auto f = std::async(std::launch::async,