std:: atomic_flag_notify_all
From cppreference.net
C++
Concurrency support library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
헤더에 정의됨
<atomic>
|
||
|
void
atomic_flag_notify_all
(
std::
atomic_flag
*
object
)
noexcept
;
|
(1) | (C++20부터) |
|
void
atomic_flag_notify_all
(
volatile
std::
atomic_flag
*
object
)
noexcept
;
|
(2) | (C++20부터) |
원자적 통지 작업을 수행합니다.
원자적 대기 연산(즉, std::atomic_flag_wait() , std::atomic_flag_wait_explicit() , 또는 std::atomic_flag::wait() )에서 블록된 모든 스레드를 * object 에서 해제합니다. 블록된 스레드가 없는 경우 아무 작업도 수행하지 않습니다.
object - > notify_all ( ) 와 동등합니다.
목차 |
매개변수
| object | - |
atomic_flag
객체에 대한 포인터
|
반환값
(없음)
참고 사항
이러한 형태의 변경 감지는 단순한 폴링이나 순수 스핀락보다 종종 더 효율적입니다.
예제
|
이 섹션은 불완전합니다
이유: 예제 없음 |
참고 항목
|
(C++20)
|
원자적 객체를 대기 중인 스레드 중 최소 하나에 알림
(
std::atomic_flag
의
public member function)
|
|
(C++20)
|
원자적 객체를 대기 중인 모든 스레드에 알림
(
std::atomic_flag
의
public member function)
|
|
(C++20)
(C++20)
|
알림을 받고 플래그가 변경될 때까지 스레드를 차단
(function) |
|
(C++20)
|
atomic_flag_wait에서 차단된 스레드 하나에 알림
(function) |