std::stop_source:: get_token
From cppreference.net
<
cpp
|
thread
|
stop source
C++
Concurrency support library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::stop_source
| Member functions | ||||
| Modifiers | ||||
| Observers | ||||
|
stop_source::get_token
|
||||
| Non-member functions | ||||
| Helper tags | ||||
|
std::
stop_token
get_token
(
)
const
noexcept
;
|
(C++20以降) | |
stop_source
が停止状態を持つ場合、その停止状態に関連付けられた
stop_token
オブジェクトを返します。それ以外の場合、デフォルト構築された(空の)
stop_token
を返します。
パラメータ
(なし)
戻り値
A
stop_token
オブジェクト。これは、
this
-
>
stop_possible
(
)
==
false
の場合、空となります。
例
|
このセクションは不完全です
理由: 例がありません |