From: Jonathan Wakely <jwakely@redhat.com>
To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org
Subject: [committed] libstdc++: Fix error in experimental::strand
Date: Mon, 26 Oct 2020 21:19:33 +0000 [thread overview]
Message-ID: <20201026211933.GA1911363@redhat.com> (raw)
[-- 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
reply other threads:[~2020-10-26 21:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201026211933.GA1911363@redhat.com \
--to=jwakely@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=libstdc++@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).