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
인 경우 빈 객체입니다.
예제
|
이 섹션은 불완전합니다
이유: 예제 없음 |