Skip to content

Commit 0bc7526

Browse files
jensmaurerzygoloid
authored andcommitted
P1869R1 Rename condition_variable_any interruptible wait methods
Also fixes NB PL 363 (C++20 CD)
1 parent 5435b57 commit 0bc7526

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

source/support.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@
614614
#define @\defnlibxname{cpp_lib_is_null_pointer}@ 201309L // also in \libheader{type_traits}
615615
#define @\defnlibxname{cpp_lib_is_pointer_interconvertible}@ 201907L // also in \libheader{type_traits}
616616
#define @\defnlibxname{cpp_lib_is_swappable}@ 201603L // also in \libheader{type_traits}
617-
#define @\defnlibxname{cpp_lib_jthread}@ 201907L // also in \libheader{stop_token}, \libheader{thread}
617+
#define @\defnlibxname{cpp_lib_jthread}@ 201911L // also in \libheader{stop_token}, \libheader{thread}
618618
#define @\defnlibxname{cpp_lib_latch}@ 201907L // also in \libheader{latch}
619619
#define @\defnlibxname{cpp_lib_launder}@ 201606L // also in \libheader{new}
620620
#define @\defnlibxname{cpp_lib_list_remove_return_type}@ 201806L // also in \libheader{forward_list}, \libheader{list}

source/threads.tex

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4752,13 +4752,13 @@
47524752

47534753
// \ref{thread.condvarany.intwait}, interruptible waits
47544754
template<class Lock, class Predicate>
4755-
bool wait_until(Lock& lock, Predicate pred, stop_token stoken);
4755+
bool wait(Lock& lock, stop_token stoken, Predicate pred);
47564756
template<class Lock, class Clock, class Duration, class Predicate>
4757-
bool wait_until(Lock& lock, const chrono::time_point<Clock, Duration>& abs_time
4758-
Predicate pred, stop_token stoken);
4757+
bool wait_until(Lock& lock, stop_token stoken,
4758+
const chrono::time_point<Clock, Duration>& abs_time, Predicate pred);
47594759
template<class Lock, class Rep, class Period, class Predicate>
4760-
bool wait_for(Lock& lock, const chrono::duration<Rep, Period>& rel_time,
4761-
Predicate pred, stop_token stoken);
4760+
bool wait_for(Lock& lock, stop_token stoken,
4761+
const chrono::duration<Rep, Period>& rel_time, Predicate pred);
47624762
};
47634763
}
47644764
\end{codeblock}
@@ -5034,7 +5034,7 @@
50345034

50355035
\begin{itemdecl}
50365036
template<class Lock, class Predicate>
5037-
bool wait_until(Lock& lock, Predicate pred, stop_token stoken);
5037+
bool wait(Lock& lock, stop_token stoken, Predicate pred);
50385038
\end{itemdecl}
50395039

50405040
\begin{itemdescr}
@@ -5077,8 +5077,8 @@
50775077

50785078
\begin{itemdecl}
50795079
template<class Lock, class Clock, class Duration, class Predicate>
5080-
bool wait_until(Lock& lock, const chrono::time_point<Clock, Duration>& abs_time
5081-
Predicate pred, stop_token stoken);
5080+
bool wait_until(Lock& lock, stop_token stoken,
5081+
const chrono::time_point<Clock, Duration>& abs_time, Predicate pred);
50825082
\end{itemdecl}
50835083

50845084
\begin{itemdescr}
@@ -5130,8 +5130,8 @@
51305130

51315131
\begin{itemdecl}
51325132
template<class Lock, class Rep, class Period, class Predicate>
5133-
bool wait_for(Lock& lock, const chrono::duration<Rep, Period>& rel_time,
5134-
Predicate pred, stop_token stoken);
5133+
bool wait_for(Lock& lock, stop_token stoken,
5134+
const chrono::duration<Rep, Period>& rel_time, Predicate pred);
51355135
\end{itemdecl}
51365136

51375137
\begin{itemdescr}

0 commit comments

Comments
 (0)