Skip to content

Commit dc6255a

Browse files
[thread.barrier.class] Exposition-only style for completion
1 parent 6aff360 commit dc6255a

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

1089910899
private:
10900-
CompletionFunction completion; // \expos
10900+
CompletionFunction @\exposid{completion}@; // \expos
1090110901
};
1090210902
}
1090310903
\end{codeblock}
@@ -10934,7 +10934,7 @@
1093410934
The \defn{phase completion step}
1093510935
that is executed at the end of each phase has the following effects:
1093610936
\begin{itemize}
10937-
\item Invokes the completion function, equivalent to \tcode{completion()}.
10937+
\item Invokes the completion function, equivalent to \tcode{\exposid{completion}()}.
1093810938
\item Unblocks all threads that are blocked on the phase synchronization point.
1093910939
\end{itemize}
1094010940
The end of the completion step strongly happens before
@@ -10962,7 +10962,7 @@
1096210962
in addition to satisfying the requirements of \tcode{CompletionFunction},
1096310963
it meets the \oldconcept{DefaultConstructible}
1096410964
requirements (\tref{cpp17.defaultconstructible}) and
10965-
\tcode{completion()} has no effects.
10965+
\tcode{\exposid{completion}()} has no effects.
1096610966

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

0 commit comments

Comments
 (0)