Skip to content

Commit bf575fb

Browse files
committed
LWG3343 Ordering of calls to unlock() and notify_all() in Effects element of notify_all_at_thread_exit() should be reversed
1 parent 5e49eff commit bf575fb

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

source/threads.tex

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9508,11 +9508,14 @@
95089508
\effects
95099509
Transfers ownership of the lock associated with \tcode{lk} into
95109510
internal storage and schedules \tcode{cond} to be notified when the current
9511-
thread exits, after all objects with thread storage duration associated with
9512-
the current thread have been destroyed. This notification is equivalent to:
9511+
thread exits.
9512+
This notification is sequenced
9513+
after all objects with thread storage duration associated with
9514+
the current thread have been destroyed and
9515+
is equivalent to:
95139516
\begin{codeblock}
9514-
lk.unlock();
95159517
cond.notify_all();
9518+
lk.unlock();
95169519
\end{codeblock}
95179520

95189521
\pnum

0 commit comments

Comments
 (0)