mirror of
https://github.com/OpenMP/Examples.git
synced 2025-04-04 05:41:33 +01:00
26 lines
643 B
TeX
26 lines
643 B
TeX
\pagebreak
|
|
\section{Restrictions on the \code{atomic} Construct}
|
|
\label{sec:atomic_restrict}
|
|
|
|
The following non-conforming examples illustrate the restrictions on the \code{atomic}
|
|
construct.
|
|
|
|
\cexample[3.1]{atomic_restrict}{1}
|
|
|
|
\fexample[3.1]{atomic_restrict}{1}
|
|
|
|
\cexample[3.1]{atomic_restrict}{2}
|
|
|
|
\fortranspecificstart
|
|
The following example is non-conforming because \code{I} and \code{R} reference
|
|
the same location but have different types.
|
|
|
|
\fnexample[3.1]{atomic_restrict}{2}
|
|
|
|
Although the following example might work on some implementations, this is also
|
|
non-conforming:
|
|
|
|
\fnexample[3.1]{atomic_restrict}{3}
|
|
\fortranspecificend
|
|
|