Skip to content

P3111R8 Atomic Reduction Operations #8025

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion source/algorithms.tex
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@
A standard library function is \defn{vectorization-unsafe}
if it is specified to synchronize with another function invocation, or
another function invocation is specified to synchronize with it,
and if it is not a memory allocation or deallocation function.
and if it is not a memory allocation or deallocation function
or lock-free atomic modify-write operation\iref{atomics.order}.
\begin{note}
Implementations must ensure that internal synchronization
inside standard library functions does not prevent forward progress
Expand Down
10 changes: 6 additions & 4 deletions source/basic.tex
Original file line number Diff line number Diff line change
Expand Up @@ -6618,7 +6618,8 @@
\item invoke the function \tcode{std::this_thread::yield}\iref{thread.thread.this},
\item make a call to a library I/O function,
\item perform an access through a volatile glvalue,
\item perform a synchronization operation or an atomic operation, or
\item perform an atomic or synchronization operation
other than an atomic modify-write operation\iref{atomics.order}, or
\item continue execution of a trivial infinite loop\iref{stmt.iter.general}.
\end{itemize}
\begin{note}
Expand Down Expand Up @@ -6675,9 +6676,10 @@
an \defn{execution step}:
\begin{itemize}
\item termination of the thread of execution,
\item performing an access through a volatile glvalue, or
\item completion of a call to a library I/O function, a
synchronization operation, or an atomic operation.
\item performing an access through a volatile glvalue,
\item completion of a call to a library I/O function, or
\item completion of an atomic or synchronization operation
other than an atomic modify-write operation\iref{atomics.order}.
\end{itemize}

\pnum
Expand Down
1 change: 1 addition & 0 deletions source/support.tex
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@
#define @\defnlibxname{cpp_lib_atomic_is_always_lock_free}@ 201603L // freestanding, also in \libheader{atomic}
#define @\defnlibxname{cpp_lib_atomic_lock_free_type_aliases}@ 201907L // also in \libheader{atomic}
#define @\defnlibxname{cpp_lib_atomic_min_max}@ 202403L // freestanding, also in \libheader{atomic}
#define @\defnlibxname{cpp_lib_atomic_reductions}@ 202506L // freestanding, also in \libheader{atomic}
#define @\defnlibxname{cpp_lib_atomic_ref}@ 202411L // freestanding, also in \libheader{atomic}
#define @\defnlibxname{cpp_lib_atomic_shared_ptr}@ 201711L // also in \libheader{memory}
#define @\defnlibxname{cpp_lib_atomic_value_initialization}@ 201911L // freestanding, also in \libheader{atomic}, \libheader{memory}
Expand Down
Loading