From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by sourceware.org (Postfix) with ESMTPS id 18002388A41B for ; Wed, 2 Jun 2021 14:37:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 18002388A41B Received: by mail-pj1-x1032.google.com with SMTP id h12-20020a17090aa88cb029016400fd8ad8so1901847pjq.3 for ; Wed, 02 Jun 2021 07:37:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=d/RW1171egb2aJ+wlGUzdsvjHm9nayOrc9gDYaUp2E8=; b=W3AFALJ0t1pLPW3bz2jkRFuJsUVoRwj/WM7xwJfwhB0SDXFjsEqubQslAd66mPZbsQ tyleT2cqK0RGGt0mCAHWW/zKrzStc0V3Fsr1ix4t5j0X8je7l3IYrv4H7ZTM/JnbnNlU gDHYra57uL3tZVtmWhZ+k+dhI4ojh+oXKe3VH6WrktkLPYZ+zKOjdPvjOTdJAIiwUHQE wQ+61mvoj34nwM4ewlAdY4O6OGwP/bjjxv7K7qEgSf6AtDaif1/DYhDLIstMMKF/aQLM Pw/8K2n+y0faQhdG0N5RhPFjuCuSpIEbq7F6TlQ5ctg1dOzEU2bxGStgwQFqo3XhNSwL eLqQ== X-Gm-Message-State: AOAM532p0vS5I4+VaQQYwlOEtht88CmUQnRAPHjLqq0xUjwcsT3680KG uOiDPDnkPgvXosPFx9YAWfhKjaW4kICqoeZWkrw= X-Google-Smtp-Source: ABdhPJz4eAQeBB1ryCjXGeCZB8M/bsIC+ncIJ/xGOskhKjnDpmUK+iIXGlu11upgDGi8lygonfQmWO8cDYEAFP934Rw= X-Received: by 2002:a17:902:34f:b029:ef:3d14:1c27 with SMTP id 73-20020a170902034fb02900ef3d141c27mr31842127pld.65.1622644635234; Wed, 02 Jun 2021 07:37:15 -0700 (PDT) MIME-Version: 1.0 References: <6e2006356de7157302748c8cf7a9dc48@appliantology.com> In-Reply-To: From: Mikhail Matrosov Date: Wed, 2 Jun 2021 17:37:04 +0300 Message-ID: Subject: Re: std::atomic_shared_ptr To: Jonathan Wakely Cc: Thomas Rodgers , "libstdc++" X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: libstdc++@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++ mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2021 14:37:17 -0000 > Probably not, because it would require ABI-breaking changes to std::shared_ptr, which is out of the question. Could you please elaborate on that? I can see how folly uses std::shared_ptr directly: https://github.com/facebook/folly/blob/master/folly/concurrency/AtomicSharedPtr.h#L76 https://github.com/facebook/folly/blob/master/folly/concurrency/detail/AtomicSharedPtr-detail.h#L45 ----- Best regards, Mikhail Matrosov