Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id F02E0200BE2 for ; Thu, 15 Dec 2016 22:31:12 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id EEB54160B15; Thu, 15 Dec 2016 21:31:12 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 449BD160B13 for ; Thu, 15 Dec 2016 22:31:12 +0100 (CET) Received: (qmail 62627 invoked by uid 500); 15 Dec 2016 21:31:06 -0000 Mailing-List: contact dev-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list dev@mesos.apache.org Received: (qmail 62604 invoked by uid 99); 15 Dec 2016 21:31:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Dec 2016 21:31:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id B06E21A0693 for ; Thu, 15 Dec 2016 21:31:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.88 X-Spam-Level: * X-Spam-Status: No, score=1.88 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 5FTZvYTVlsrN for ; Thu, 15 Dec 2016 21:31:03 +0000 (UTC) Received: from mail-ua0-f182.google.com (mail-ua0-f182.google.com [209.85.217.182]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 99C405F54F for ; Thu, 15 Dec 2016 21:31:03 +0000 (UTC) Received: by mail-ua0-f182.google.com with SMTP id 51so19939018uai.1 for ; Thu, 15 Dec 2016 13:31:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=+O1fB0nuXeD4t/Bx9F3qtgOXoYcT9LMNs58JaxSncaU=; b=vL2+bfkHjycRBFCS6fuf5q6znWAhR+mKwWa9qR2pxAkSi2eFBZZFGWIkZUDQ0Btz9I JNF1tUNycnuL2KTk0+hHREMnoTZTn3hwidzINVbwfaYiItBC4VmdUDPofARjqdla4HhD 150RduYt1bj/luOvCutUxkOcPam3se1VXen+cjW33/Imhh6ptwhPIMmgIRKw/s8jwPOp T2QDYiOPpN0r0sWCM44Ifu6cwtPVaw1e3Cb8xzuzSh83gi/TyrZhAqnPxM8YoJJnMpKw 2LIzVfFMn3DxsNGpNI+i1GSlaO18SB+RHg7ZSg4niUopd/bUCbKfimSfJ70lrGFB9EnS vbyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=+O1fB0nuXeD4t/Bx9F3qtgOXoYcT9LMNs58JaxSncaU=; b=QM76Das9xA8e2SzYdj0W6SzvFkEwucdd/HtBD14uWP5MFN2Nrq3mWeXSt3Z5aKf2Cv H88MrrS5hWeBgqRMj0G8UGjYU3UFxsGX5oEAcWCfEso9SlRExomJvsVrbiHQq666/wS0 w1l9rbuazbGods3mwDlWZBScmZvXO3PbEZBwVX1HnXkX1CoC58mtyDWrHNBxqvBCwB2l ncqA1QpdPV3ZWtyG6A3MmJOE3ioyByjBRjkiwd+ijo6ST25HZAhcybmfb9poa9GLw9F+ KvbnJhe3RDe1liVXyGRFvAaDPjgMTcSjrh3/rvvF1fdXKLEEIhRmcZJvs0j4QiFvDsAY 3d0A== X-Gm-Message-State: AKaTC02/ieQG/hXvB7dXKZfAeEYlkNd/Z2o4kmY+D0lUJqUeHPPXMBJMFp7MF+OFiN2HIhdHGNX0QhJ2GCFKlA== X-Received: by 10.176.80.14 with SMTP id b14mr4319014uaa.132.1481837462867; Thu, 15 Dec 2016 13:31:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.31.89.196 with HTTP; Thu, 15 Dec 2016 13:31:02 -0800 (PST) In-Reply-To: References: From: tommy xiao Date: Fri, 16 Dec 2016 05:31:02 +0800 Message-ID: Subject: Re: thread_local supported on Apple To: dev Content-Type: multipart/alternative; boundary=94eb2c1923089753e50543b92b39 archived-at: Thu, 15 Dec 2016 21:31:13 -0000 --94eb2c1923089753e50543b92b39 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable +1 2016-12-15 7:27 GMT+08:00 Joris Van Remoortere : > The time has come and we finally have `thread_local` support in the Apple > tool chain: > https://developer.apple.com/library/content/releasenotes/ > DeveloperTools/RN-Xcode/Introduction.html > > In our code base we have a special exception for Apple that defines our > thread local to be `__thread` rather than the c++11 standard > `thread_local`. > https://github.com/apache/mesos/blob/812e5e3d4e4d9e044a1cfe6cc7eaab > 10efb499b6/3rdparty/stout/include/stout/thread_local.hpp > > A consequence of using `__thread` on Apple is that initializers for threa= d > locals are required to be constant expressions. This is not the case for > the c++11 standard `thread_local`. > > I would like to propose that we remove this exception on the Apple platfo= rm > now that the Apple toolchain supports the c++11 standard. > > As I am not a common user of the Apple development experience I would lik= e > to ask for some input from the community as to whether requiring this > toolchain update is acceptable, and if we need a deprecation period or if > we can just make this change now. > > I am leaning towards no deprecation period as I am not aware of productio= n > environments running on systems that define `__APPLE__`. > =E2=80=94 > *Joris Van Remoortere* > Mesosphere > --=20 Deshi Xiao Twitter: xds2000 E-mail: xiaods(AT)gmail.com --94eb2c1923089753e50543b92b39--