이름공간
변수
행위

Atomic operations library

cppreference.com
< cpp

원자적 연산 라이브러리는 락(lock)없는 동시성 프로그래밍(concurrent programming)을 가능하게 할 수 있는 잘 구분지어진 원자적인 연산을 제공한다. 각 원자적 연산은 다른 원자적 연산에 독립적이며, 같은 오브젝트를 포함하더라도 상호작용 하지 않는다. 원자적 오브젝트는 데이터 경쟁에서 자유롭다.

<atomic> 헤더에 정의되어 있음.

목차

Atomic types
(C++11)
atomic class template and specializations for bool, integral, and pointer types
(class template) [edit]
Operations on atomic types
checks if the atomic type's operations are lock-free
(function template) [edit]
atomically replaces the value of the atomic object with a non-atomic argument
(function template) [edit]
atomically obtains the value stored in an atomic object
(function template) [edit]
atomically replaces the value of the atomic object with non-atomic argument and returns the old value of the atomic
(function template) [edit]
atomically compares the value of the atomic object with non-atomic argument and performs atomic exchange if equal or atomic load if not
(function template) [edit]
adds a non-atomic value to an atomic object and obtains the previous value of the atomic
(function template) [edit]
subtracts a non-atomic value from an atomic object and obtains the previous value of the atomic
(function template) [edit]
replaces the atomic object with the result of logical AND with a non-atomic argument and obtains the previous value of the atomic
(function template) [edit]
replaces the atomic object with the result of logical OR with a non-atomic argument and obtains the previous value of the atomic
(function template) [edit]
replaces the atomic object with the result of logical XOR with a non-atomic argument and obtains the previous value of the atomic
(function template) [edit]
Flag type and operations
the lock-free boolean atomic type
(class) [edit]
atomically sets the flag to true and returns its previous value
(function) [edit]
atomically sets the value of the flag to false
(function) [edit]
Initialization
non-atomic initialization of a default-constructed atomic object
(function template) [edit]
constant initialization of an atomic variable of static storage duration
(function macro) [edit]
initializes an std::atomic_flag to false
(macro constant) [edit]
Memory synchronization ordering
defines memory ordering constraints for the given atomic operation
(typedef) [edit]
removes the specified object from the std::memory_order_consume dependency tree
(function template) [edit]
generic memory order-dependent fence synchronization primitive
(function) [edit]
fence between a thread and a signal handler executed in the same thread
(function) [edit]

[편집] See also

C documentation for Atomic operations library