From: Mikhail Matrosov <mikhail.matrosov@gmail.com>
To: Thomas Rodgers <rodgert@appliantology.com>
Cc: libstdc++@gcc.gnu.org
Subject: Re: std::atomic_shared_ptr
Date: Wed, 2 Jun 2021 10:10:00 +0300 [thread overview]
Message-ID: <CADhDkKx=dOXLWUmddOrZFPh6jsxe4+1CmtJMG6cuX-+3=vG9hg@mail.gmail.com> (raw)
In-Reply-To: <6e2006356de7157302748c8cf7a9dc48@appliantology.com>
Hi, Thomas,
> It didn't make the cutoff for GCC11 stage1, I hope to get it into GCC12.
Glad to hear that!
> Also, to set expectations, it will not be a lock free atomic.
Hm. That's surprising. And honestly does not look very useful. We can
always wrap a shared_ptr in a mutex.
There exist lock-free implementations in the wild. E.g. in folly. Would it
be possible to adopt one of those?
-----
Best regards, Mikhail Matrosov
next prev parent reply other threads:[~2021-06-02 7:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-01 19:35 std::atomic_shared_ptr Mikhail Matrosov
2021-06-02 1:57 ` std::atomic_shared_ptr Thomas Rodgers
2021-06-02 2:16 ` std::atomic_shared_ptr Thomas Rodgers
2021-06-02 7:10 ` Mikhail Matrosov [this message]
2021-06-02 9:22 ` std::atomic_shared_ptr Jonathan Wakely
2021-06-02 14:37 ` std::atomic_shared_ptr Mikhail Matrosov
2021-06-02 15:03 ` std::atomic_shared_ptr Thomas Rodgers
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='CADhDkKx=dOXLWUmddOrZFPh6jsxe4+1CmtJMG6cuX-+3=vG9hg@mail.gmail.com' \
--to=mikhail.matrosov@gmail.com \
--cc=libstdc++@gcc.gnu.org \
--cc=rodgert@appliantology.com \
/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).