Skip to content

Commit 0645536

Browse files
[thread.barrier.class] Exposition-only style for completion
1 parent dd76b55 commit 0645536

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/threads.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10872,7 +10872,7 @@
1087210872
void arrive_and_drop();
1087310873

1087410874
private:
10875-
CompletionFunction completion; // \expos
10875+
CompletionFunction @\exposid{completion}@; // \expos
1087610876
};
1087710877
}
1087810878
\end{codeblock}
@@ -10909,7 +10909,7 @@
1090910909
The \defn{phase completion step}
1091010910
that is executed at the end of each phase has the following effects:
1091110911
\begin{itemize}
10912-
\item Invokes the completion function, equivalent to \tcode{completion()}.
10912+
\item Invokes the completion function, equivalent to \tcode{\exposid{completion}()}.
1091310913
\item Unblocks all threads that are blocked on the phase synchronization point.
1091410914
\end{itemize}
1091510915
The end of the completion step strongly happens before
@@ -10937,7 +10937,7 @@
1093710937
in addition to satisfying the requirements of \tcode{CompletionFunction},
1093810938
it meets the \oldconcept{DefaultConstructible}
1093910939
requirements (\tref{cpp17.defaultconstructible}) and
10940-
\tcode{completion()} has no effects.
10940+
\tcode{\exposid{completion}()} has no effects.
1094110941

1094210942
\pnum
1094310943
\tcode{barrier::arrival_token} is an unspecified type,
@@ -10973,7 +10973,7 @@
1097310973
\effects
1097410974
Sets both the initial expected count for each barrier phase and
1097510975
the current expected count for the first phase to \tcode{expected}.
10976-
Initializes \tcode{completion} with \tcode{std::move(f)}.
10976+
Initializes \exposid{completion} with \tcode{std::move(f)}.
1097710977
Starts the first phase.
1097810978
\begin{note}
1097910979
If \tcode{expected} is 0 this object can only be destroyed.

0 commit comments

Comments
 (0)