名前空間
変種
操作

std::jthread::get_stop_source

提供: cppreference.com
< cpp‎ | thread‎ | jthread
 
 
スレッドサポートライブラリ
スレッド
(C++11)
(C++20)
(C++20)
this_thread 名前空間
(C++11)
(C++11)
(C++11)
相互排他
汎用ロック管理
(C++11)
(C++11)
(C++11)(C++11)(C++11)
(C++11)
(C++11)
条件変数
(C++11)
セマフォ
ラッチとバリア
(C++20)
(C++20)
フューチャー
(C++11)
(C++11)
(C++11)
 
 
std::stop_source get_stop_source()constnoexcept;
(C++20以上)

この jthread オブジェクトが内部的に保持しているのと同じ共有された停止状態に紐付く std::stop_source を返します。

[編集]引数

(なし)

[編集]戻り値

jthread オブジェクトが内部的に保持している停止状態に紐付く std::stop_source 型の値。

[編集]

close