Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1016 Bytes

File metadata and controls

41 lines (28 loc) · 1016 Bytes

resume

  • coroutine[meta header]
  • std[meta namespace]
  • coroutine_handle[meta class]
  • function[meta id-type]
  • cpp20[meta cpp]
void operator()() const;
void resume() const;

概要

中断状態にあるコルーチンの実行を再開する。

事前条件

*thisが中断状態のコルーチンを指し、かつ最終サスペンドポイントで中断状態にないこと。

効果

コルーチンの実行を再開する。

備考

std::threadstd::jthreadのインスタンス、もしくはメインスレッド以外からコルーチンを再開する場合、その振る舞いは処理系定義とされる。

バージョン

言語

  • C++20

処理系

関連項目