From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by sourceware.org (Postfix) with ESMTPS id B1EFF3856DC0 for ; Fri, 21 Oct 2022 11:44:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B1EFF3856DC0 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-wm1-x32e.google.com with SMTP id az22-20020a05600c601600b003c6b72797fdso1778890wmb.5 for ; Fri, 21 Oct 2022 04:44:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=GeZHDp9VZsRsQek/6jVrc8KwUtX5vxhKawgwGD67n7E=; b=CEgB3QdpnlucD2OUpP76cXIgVy+KstRjoSzQ0cLzmMm5T84VxkllgCS3XnC/notk+2 Ct9/uavtVKBguyVDhsYdfLXnzifQW51nScQRS/iFyz5vRG1mglPYrRTnifW/LO1ccaUz lbxn/Xb4XvVEbaJ3LOXs7HCFjTGFNY478UA2DwJsSX+XNWdOEVRu7mJ1TA+OtqDgYXkG fckHtiNEEq1jiaaxMsbdwEhOcIoxTqlsKiU/48BsalRJoEkYiOOboZguHA53v9rg5nQ1 wfPYxhdXrZOOiN3VQu3WUu48U71WW6OImV86C4YQIunO82TH4N1O3xInhUo/qJfB6UX6 YzYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GeZHDp9VZsRsQek/6jVrc8KwUtX5vxhKawgwGD67n7E=; b=UyVdTpOW6xuhYV2eyCVsdq5KWYPF+cShmpVN39Uw63oARiOLkF5T/KPODi+hvo+xzo DemNuYeeSbdafN7f0zFPOBkmJS5KzD+pH8Ge1yBZf3NNwFyGCs4jH4DkvVvEu7VXyJdV cu6nB+ZaBllgjf5zAWRbqA+2vuCmzUvFcnBiQdp+++VhHD0PEj6O8qfGReYC0htnDTA1 8nFrVy8nWna46i4Rx78gpVFE+ovrHs5qAn5ObIXmOvmTZfFIES50pp9BbGL5qwn4V4gH PctRV0bLW7RBS5/DyXL1DyByZbQ2UZQ2vbW6YuAclM7MvJt7sqItT2LOhzj5qHlGvrhN W4Gw== X-Gm-Message-State: ACrzQf3cE889kfo8pm6bOW5Ns7UR/ykRP2QHXVs3/EF1jHNIpfUNL/qA ouB5OFNgyBn3apY06EJ5cu28dg== X-Google-Smtp-Source: AMsMyM6NM+eNZyL7EZddHHeEk4KzNUkTvQtlYYrye6Rvmb+Ih27ey3GIGP43bC2FMdcHW7jqjWYdYA== X-Received: by 2002:a7b:c5d6:0:b0:3c6:f970:e755 with SMTP id n22-20020a7bc5d6000000b003c6f970e755mr12762652wmk.132.1666352689506; Fri, 21 Oct 2022 04:44:49 -0700 (PDT) Received: from fomalhaut.localnet ([2a01:e0a:8d5:d990:e654:e8ff:fe8f:2ce6]) by smtp.gmail.com with ESMTPSA id c5-20020a05600c0a4500b003b5054c6f87sm2609387wmq.21.2022.10.21.04.44.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Oct 2022 04:44:48 -0700 (PDT) From: Eric Botcazou X-Google-Original-From: Eric Botcazou To: Jonathan Wakely Cc: LIU Hao , libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: Re: Adding a new thread model to GCC Date: Fri, 21 Oct 2022 13:44:47 +0200 Message-ID: <4435122.LvFx2qVVIh@fomalhaut> In-Reply-To: References: <0f1f223a-3756-1da3-bd1d-b87edd34e1f9@126.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > How does this compare with Eric B's proposal at > https://gcc.gnu.org/legacy-ml/gcc-patches/2019-06/msg01840.html ? My proposal was to reimplement (and extend) the native thread model (win32) instead of adding a new one, the advantage being that you don't need an extra threading layer between GCC and Windows. -- Eric Botcazou