From dc9e8daeec0aaab121410074f367f2671667d4e8 Mon Sep 17 00:00:00 2001 From: "A. Jiang" Date: Fri, 24 Oct 2025 11:57:20 +0800 Subject: [PATCH 1/7] [thread.stoptoken.syn] Index `nostopstate(_t)` and `stop_callback_for_t` --- source/threads.tex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/threads.tex b/source/threads.tex index e2678b688c..f62af1208f 100644 --- a/source/threads.tex +++ b/source/threads.tex @@ -534,10 +534,10 @@ class stop_source; // no-shared-stop-state indicator - struct nostopstate_t { + struct @\libglobal{nostopstate_t}@ { explicit nostopstate_t() = default; }; - inline constexpr nostopstate_t nostopstate{}; + inline constexpr nostopstate_t @\libglobal{nostopstate}@{}; // \ref{stopcallback}, class template \tcode{stop_callback} template @@ -557,7 +557,7 @@ class inplace_stop_callback; template - using stop_callback_for_t = T::template callback_type; + using @\libglobal{stop_callback_for_t}@ = T::template callback_type; } \end{codeblock} From a4d5c6421628c910b41f48a999c0c8ea3efc0adc Mon Sep 17 00:00:00 2001 From: "A. Jiang" Date: Fri, 24 Oct 2025 12:09:13 +0800 Subject: [PATCH 2/7] [stoptoken.general] Index `stop_token::callback_type` --- source/threads.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/threads.tex b/source/threads.tex index f62af1208f..5f72919ad3 100644 --- a/source/threads.tex +++ b/source/threads.tex @@ -835,7 +835,7 @@ class stop_token { public: template - using callback_type = stop_callback; + using @\libmember{callback_type}{stop_token}@ = stop_callback; stop_token() noexcept = default; From 9318f0b7e9505cf1166e6dc05e6b32d4d4060fa8 Mon Sep 17 00:00:00 2001 From: "A. Jiang" Date: Fri, 24 Oct 2025 12:10:45 +0800 Subject: [PATCH 3/7] [stopcallback.general] Index `stop_callback::callback_type` --- source/threads.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/threads.tex b/source/threads.tex index 5f72919ad3..62dc7f8b38 100644 --- a/source/threads.tex +++ b/source/threads.tex @@ -1043,7 +1043,7 @@ template class stop_callback { public: - using callback_type = CallbackFn; + using @\libmember{callback_type}{stop_callback}@ = CallbackFn; // \ref{stopcallback.cons}, constructors and destructor template From 6c6d1ec8e2779a8bdd5092ffdc1bd279acfa747d Mon Sep 17 00:00:00 2001 From: "A. Jiang" Date: Fri, 24 Oct 2025 11:58:21 +0800 Subject: [PATCH 4/7] [stoptoken.never] Index `never_stop_token` and its members except for the exposition-only _`callback-type`_ and defaulted `operator==`. --- source/threads.tex | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/threads.tex b/source/threads.tex index 62dc7f8b38..4808a54fad 100644 --- a/source/threads.tex +++ b/source/threads.tex @@ -1133,6 +1133,7 @@ It provides a stop token interface, but also provides static information that a stop is never possible nor requested. +\indexlibraryglobal{never_stop_token}% \begin{codeblock} namespace std { class never_stop_token { @@ -1141,10 +1142,10 @@ }; public: template - using callback_type = @\exposid{callback-type}@; + using @\libmember{callback_type}{never_stop_token}@ = @\exposid{callback-type}@; - static constexpr bool stop_requested() noexcept { return false; } - static constexpr bool stop_possible() noexcept { return false; } + static constexpr bool @\libmember{stop_requested}{never_stop_token}@() noexcept { return false; } + static constexpr bool @\libmember{stop_possible}{never_stop_token}@() noexcept { return false; } bool operator==(const never_stop_token&) const = default; }; From 30c4e0131f1bc951c2486f2589cfd84445cb18aa Mon Sep 17 00:00:00 2001 From: "A. Jiang" Date: Fri, 24 Oct 2025 11:59:08 +0800 Subject: [PATCH 5/7] [stoptoken.inplace] Index `inplace_stop_token` and its members except for the defaulted `operator==`. --- source/threads.tex | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/threads.tex b/source/threads.tex index 4808a54fad..714585ff25 100644 --- a/source/threads.tex +++ b/source/threads.tex @@ -1162,12 +1162,13 @@ It references the stop state of its associated \tcode{inplace_stop_source} object\iref{stopsource.inplace}, if any. +\indexlibraryglobal{inplace_stop_token}% \begin{codeblock} namespace std { class inplace_stop_token { public: template - using callback_type = inplace_stop_callback; + using @\libmember{callback_type}{inplace_stop_token}@ = inplace_stop_callback; inplace_stop_token() = default; bool operator==(const inplace_stop_token&) const = default; @@ -1185,6 +1186,7 @@ \rSec3[stoptoken.inplace.mem]{Member functions} +\indexlibrarymember{swap}{inplace_stop_token}% \begin{itemdecl} void swap(inplace_stop_token& rhs) noexcept; \end{itemdecl} @@ -1195,6 +1197,7 @@ Exchanges the values of \exposid{stop-source} and \tcode{rhs.\exposid{stop-source}}. \end{itemdescr} +\indexlibrarymember{stop_requested}{inplace_stop_token}% \begin{itemdecl} bool stop_requested() const noexcept; \end{itemdecl} @@ -1216,6 +1219,7 @@ \end{note} \end{itemdescr} +\indexlibrarymember{stop_possible}{inplace_stop_token}% \begin{itemdecl} stop_possible() const noexcept; \end{itemdecl} From d892057305ff8b80a138179be3cf74bb5897aaf0 Mon Sep 17 00:00:00 2001 From: "A. Jiang" Date: Fri, 24 Oct 2025 11:59:40 +0800 Subject: [PATCH 6/7] [stopsource.inplace] Index `inplace_stop_source` and its members --- source/threads.tex | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/threads.tex b/source/threads.tex index 714585ff25..d519af6472 100644 --- a/source/threads.tex +++ b/source/threads.tex @@ -1246,6 +1246,7 @@ \pnum The class \tcode{inplace_stop_source} models \exposconcept{stoppable-source}. +\indexlibraryglobal{inplace_stop_source}% \begin{codeblock} namespace std { class inplace_stop_source { @@ -1261,7 +1262,7 @@ // \ref{stopsource.inplace.mem}, stop handling constexpr inplace_stop_token get_token() const noexcept; - static constexpr bool stop_possible() noexcept { return true; } + static constexpr bool @\libmember{stop_possible}{inplace_stop_source}@() noexcept { return true; } bool stop_requested() const noexcept; bool request_stop() noexcept; }; @@ -1270,6 +1271,7 @@ \rSec3[stopsource.inplace.cons]{Constructors} +\indexlibraryctor{inplace_stop_source}% \begin{itemdecl} constexpr inplace_stop_source() noexcept; \end{itemdecl} @@ -1286,6 +1288,7 @@ \rSec3[stopsource.inplace.mem]{Member functions} +\indexlibrarymember{get_token}{inplace_stop_source}% \begin{itemdecl} constexpr inplace_stop_token get_token() const noexcept; \end{itemdecl} @@ -1297,6 +1300,7 @@ whose \exposid{stop-source} member is equal to \tcode{this}. \end{itemdescr} +\indexlibrarymember{stop_requested}{inplace_stop_source}% \begin{itemdecl} bool stop_requested() const noexcept; \end{itemdecl} @@ -1308,6 +1312,7 @@ has received a stop request; otherwise, \tcode{false}. \end{itemdescr} +\indexlibrarymember{request_stop}{inplace_stop_source}% \begin{itemdecl} bool request_stop() noexcept; \end{itemdecl} From ce470ae6cf8e719f2a2c0a11e71ad4fa1aaedc49 Mon Sep 17 00:00:00 2001 From: "A. Jiang" Date: Fri, 24 Oct 2025 12:04:55 +0800 Subject: [PATCH 7/7] [stopcallback.inplace] Index `inplace_stop_callback` and its members except for its destructor, since it is doubtful whether the destructor should be explicitly mentioned. --- source/threads.tex | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/threads.tex b/source/threads.tex index d519af6472..68206c12da 100644 --- a/source/threads.tex +++ b/source/threads.tex @@ -1331,12 +1331,13 @@ \rSec3[stopcallback.inplace.general]{General} +\indexlibraryglobal{inplace_stop_callback}% \begin{codeblock} namespace std { template class inplace_stop_callback { public: - using callback_type = CallbackFn; + using @\libmember{callback_type}{inplace_stop_callback}@ = CallbackFn; // \ref{stopcallback.inplace.cons}, constructors and destructor template @@ -1381,6 +1382,7 @@ \rSec3[stopcallback.inplace.cons]{Constructors and destructor} +\indexlibraryctor{inplace_stop_callback}% \begin{itemdecl} template explicit inplace_stop_callback(inplace_stop_token st, Initializer&& init) @@ -1398,6 +1400,7 @@ and executes a stoppable callback registration\iref{stoptoken.concepts}. \end{itemdescr} +\indexlibrarydtor{inplace_stop_callback}% \begin{itemdecl} ~inplace_stop_callback(); \end{itemdecl}