* [committed] libstdc++: Fix error in experimental::strand
@ 2020-10-26 21:19 Jonathan Wakely
0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2020-10-26 21:19 UTC (permalink / raw)
To: libstdc++, gcc-patches
[-- Attachment #1: Type: text/plain, Size: 136 bytes --]
libstdc++-v3/ChangeLog:
* include/experimental/executor (strand::_State): Fix thinko.
Tested powerpc64le-linux. Committed to trunk.
[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 863 bytes --]
commit b784bbbe45414084551a824504650f21cb653ca1
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Mon Oct 26 21:00:06 2020
libstdc++: Fix error in experimental::strand
libstdc++-v3/ChangeLog:
* include/experimental/executor (strand::_State): Fix thinko.
diff --git a/libstdc++-v3/include/experimental/executor b/libstdc++-v3/include/experimental/executor
index 45e813f6747..462a4b24b16 100644
--- a/libstdc++-v3/include/experimental/executor
+++ b/libstdc++-v3/include/experimental/executor
@@ -1602,8 +1602,8 @@ inline namespace v1
{
#if defined(_GLIBCXX_HAS_GTHREADS)
bool
- running_in_this_thread() const
- { return std::this_thread::get_id() == _M_state->_M_running_on; }
+ running_in_this_thread() const noexcept
+ { return std::this_thread::get_id() == _M_running_on; }
std::thread::id _M_running_on;
#else
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-26 21:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-26 21:19 [committed] libstdc++: Fix error in experimental::strand Jonathan Wakely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).