File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1087210872 void arrive_and_drop();
1087310873
1087410874 private:
10875- CompletionFunction completion; // \expos
10875+ CompletionFunction @ \exposid { completion}@ ; // \expos
1087610876 };
1087710877}
1087810878\end {codeblock }
1090910909The \defn {phase completion step}
1091010910that 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 }
1091510915The end of the completion step strongly happens before
1093710937in addition to satisfying the requirements of \tcode {CompletionFunction},
1093810938it meets the \oldconcept {DefaultConstructible}
1093910939requirements (\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,
1097310973\effects
1097410974Sets both the initial expected count for each barrier phase and
1097510975the 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)}.
1097710977Starts the first phase.
1097810978\begin {note }
1097910979If \tcode {expected} is 0 this object can only be destroyed.
You can’t perform that action at this time.
0 commit comments