std::stop_source:: stop_requested
From cppreference.net
<
cpp
|
thread
|
stop source
C++
Concurrency support library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::stop_source
| Member functions | ||||
| Modifiers | ||||
| Observers | ||||
|
stop_source::stop_requested
|
||||
| Non-member functions | ||||
| Helper tags | ||||
|
bool
stop_requested
(
)
const
noexcept
;
|
(C++20 이후) | |
stop_source
객체가 중단 상태를 가지고 있으며, 해당 상태가 중단 요청을 받았는지 확인합니다.
매개변수
(없음)
반환값
true
만약
stop_token
객체가 중단 상태를 가지고 있고 중단 요청을 받은 경우,
false
그렇지 않은 경우.
예제
|
이 섹션은 불완전합니다
이유: 예제 없음 |