atomic_flag
From cppreference.net
|
헤더 파일에 정의됨
<stdatomic.h>
|
||
|
typedef
struct
/* 지정되지 않음 */
atomic_flag
;
|
(C11부터) | |
atomic_flag
는 원자적 불린 타입입니다. 다른 원자적 타입들과 달리 락-프리 방식이 보장됩니다.
atomic_bool
과 달리,
atomic_flag
는 load나 store 연산을 제공하지 않습니다.
참고문헌
- C23 표준 (ISO/IEC 9899:2024):
-
- 7.17.1/5 atomic_flag (p: 293)
-
- 7.17.8 Atomic flag type and operations (p: 302-303)
- C17 표준 (ISO/IEC 9899:2018):
-
- 7.17.1/4 atomic_flag (p: 200)
-
- 7.17.8 Atomic flag type and operations (p: 208-209)
- C11 표준 (ISO/IEC 9899:2011):
-
- 7.17.1/4 atomic_flag (p: 273)
-
- 7.17.8 Atomic flag type and operations (p: 285-286)
참고 항목
|
(C11)
|
새로운
atomic_flag
를 초기화합니다
(매크로 상수) |
|
atomic_flag를 true로 설정하고 이전 값을 반환합니다
(함수) |
|
|
atomic_flag를 false로 설정합니다
(함수) |
|
|
C++ documentation
for
atomic_flag
|
|