Skip to content

Commit 175e1a8

Browse files
[thread.barrier.class] Exposition-only style for completion
1 parent f1e920a commit 175e1a8

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
@@ -10898,7 +10898,7 @@
1089810898
void arrive_and_drop();
1089910899

1090010900
private:
10901-
CompletionFunction completion; // \expos
10901+
CompletionFunction @\exposid{completion}@; // \expos
1090210902
};
1090310903
}
1090410904
\end{codeblock}
@@ -10935,7 +10935,7 @@
1093510935
The \defn{phase completion step}
1093610936
that is executed at the end of each phase has the following effects:
1093710937
\begin{itemize}
10938-
\item Invokes the completion function, equivalent to \tcode{completion()}.
10938+
\item Invokes the completion function, equivalent to \tcode{\exposid{completion}()}.
1093910939
\item Unblocks all threads that are blocked on the phase synchronization point.
1094010940
\end{itemize}
1094110941
The end of the completion step strongly happens before
@@ -10963,7 +10963,7 @@
1096310963
in addition to satisfying the requirements of \tcode{CompletionFunction},
1096410964
it meets the \oldconcept{DefaultConstructible}
1096510965
requirements (\tref{cpp17.defaultconstructible}) and
10966-
\tcode{completion()} has no effects.
10966+
\tcode{\exposid{completion}()} has no effects.
1096710967

1096810968
\pnum
1096910969
\tcode{barrier::arrival_token} is an unspecified type,
@@ -10999,7 +10999,7 @@
1099910999
\effects
1100011000
Sets both the initial expected count for each barrier phase and
1100111001
the current expected count for the first phase to \tcode{expected}.
11002-
Initializes \tcode{completion} with \tcode{std::move(f)}.
11002+
Initializes \exposid{completion} with \tcode{std::move(f)}.
1100311003
Starts the first phase.
1100411004
\begin{note}
1100511005
If \tcode{expected} is 0 this object can only be destroyed.

0 commit comments

Comments
 (0)