From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 72706 invoked by alias); 20 Sep 2019 12:32:21 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 72692 invoked by uid 89); 20 Sep 2019 12:32:21 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.1 spammy= X-HELO: mail-io1-f53.google.com Received: from mail-io1-f53.google.com (HELO mail-io1-f53.google.com) (209.85.166.53) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 20 Sep 2019 12:32:20 +0000 Received: by mail-io1-f53.google.com with SMTP id b136so15760191iof.3 for ; Fri, 20 Sep 2019 05:32:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=PaJLZbiJr7j+RSQVtKhVV6h/Q9joJBaxNtVW1dAjAk4=; b=GsFV1mv94s6BI0spYnOGyLfzOmuwd3MVltd468pi57xmOyDwtW1lJeDEYZfjz1SFme m2KVxDa/JTQBRPGsK03nzIG+r7VOZacc89QxwS7qAYTxRpFsxleoQ2pP5yp6YmA8yv2O ePllg1Bqs+7RLQzjCekPfVmIrMl299USSZQeLmJM1Jid2fG8qL4YNpbID92b4Japx/Sp qRi3L9uxDKBMZK3jQlaUunofuZcPDogxU3XtNQqj5S+fnN8Jih4TdyQSxRMD3Z/8EO/o rZma5wn7MoTrfRFt2rDNhnXxSLvqPfwLH28CJs6p3+UQK2htkbS1Hh1w0O/9bjRbBgoJ 0Q4Q== Return-Path: Received: from [10.251.241.192] ([142.204.244.61]) by smtp.gmail.com with ESMTPSA id f7sm1562184ioj.66.2019.09.20.05.32.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Sep 2019 05:32:18 -0700 (PDT) To: gcc@gcc.gnu.org From: Nicholas Krause Subject: Atomics in C++11 Message-ID: Date: Fri, 20 Sep 2019 12:32:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-09/txt/msg00155.txt.bz2 Greetings, I was wondering if its possible to use the C11 atomics library for multithreading GCC. Not sure if its a good idea due to concerns about older plaforms not having a C11 supported libraries or compiler. If not then the best way is pthreads key support and other posix thread supports. Thanks, Nick