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부터) |
1)
기본값이 아닌 생성자에서 자리 표시자로 사용하기 위한 빈 태그 유형으로,
std::stop_source
를 생성하면 연관된 중지 상태 없이 빈
std::stop_source
가 만들어집니다.
2)
빈
std::stop_source
를 생성하기 위해 사용되는
std::nostopstate_t
의 해당 상수 객체 인스턴스로, 기본 생성자가 아닌 생성자에서 자리 표시자 값으로 사용됩니다.
참고 항목
|
(C++20)
|
하나 이상의
std::jthread
중단 요청을 나타내는 클래스
(클래스) |