Definition
The atomic construct ensures that a specific storage location is accessed atomically as it name suggests, rather than exposing it to the possibility of multiple, simultaneous reading and writing threads that may result in indeterminate values.
#pragma omp atomic [clause[[,]clause]...] <new-line>
<expression-stmt>
or
#pragma omp atomic [clause[[[,]clause]...][,]] atomic-clause [[,]clause[[[,]clause]...]] <new-line>
<expression-stmt>
or
#pragma omp atomic [clause[[[,]clause]...][,]] capture [[,]clause[[[,]clause]...]] <new-line>
<structured-block>