std:: nostopstate, std:: nostopstate_t
From cppreference.net
<
cpp
|
thread
|
stop source
C++
Concurrency support library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::stop_source
| Member functions | ||||
| Modifiers | ||||
| Observers | ||||
| Non-member functions | ||||
| Helper tags | ||||
|
std::nostopstate
std::nostopstate_t
|
|
定义于头文件
<stop_token>
|
||
|
struct
nostopstate_t
{
explicit
nostopstate_t
(
)
=
default
;
}
;
|
(1) | (C++20 起) |
|
inline
constexpr
std::
nostopstate_t
nostopstate
{
}
;
|
(2) | (C++20 起) |
参见
|
(C++20)
|
表示停止一个或多个
std::jthread
请求的类
(类) |