{"id":817379,"url":"http://patchwork.ozlabs.org/api/covers/817379/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/cover/20170922081728.32508-1-mac@mcrowe.com/","project":{"id":17,"url":"http://patchwork.ozlabs.org/api/projects/17/?format=json","name":"GNU Compiler Collection","link_name":"gcc","list_id":"gcc-patches.gcc.gnu.org","list_email":"gcc-patches@gcc.gnu.org","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20170922081728.32508-1-mac@mcrowe.com>","list_archive_url":null,"date":"2017-09-22T08:17:24","name":"[RFC,0/4] Make std::future::wait_* use std::chrono::steady_clock when required","submitter":{"id":66786,"url":"http://patchwork.ozlabs.org/api/people/66786/?format=json","name":"Mike Crowe","email":"mac@mcrowe.com"},"mbox":"http://patchwork.ozlabs.org/project/gcc/cover/20170922081728.32508-1-mac@mcrowe.com/mbox/","series":[{"id":4567,"url":"http://patchwork.ozlabs.org/api/series/4567/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/list/?series=4567","date":"2017-09-22T08:17:24","name":"Make std::future::wait_* use std::chrono::steady_clock when required","version":1,"mbox":"http://patchwork.ozlabs.org/series/4567/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/817379/comments/","headers":{"Return-Path":"<gcc-patches-return-462755-incoming=patchwork.ozlabs.org@gcc.gnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list gcc-patches@gcc.gnu.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=gcc-patches-return-462755-incoming=patchwork.ozlabs.org@gcc.gnu.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tunprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org\n\theader.b=\"Ff5BQd2c\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xz5wM0J62z9s8J\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 22 Sep 2017 18:18:35 +1000 (AEST)","(qmail 25559 invoked by alias); 22 Sep 2017 08:18:21 -0000","(qmail 25139 invoked by uid 89); 22 Sep 2017 08:18:19 -0000","from relay101a.appriver.com (HELO relay.appriver.com)\n\t(207.97.230.14) by sourceware.org\n\t(qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP;\n\tFri, 22 Sep 2017 08:18:18 +0000","from [213.210.30.29] (HELO elite.brightsign) by relay.appriver.com\n\t(CommuniGate Pro SMTP 6.1.7) with ESMTPS id 201294865;\n\tFri, 22 Sep 2017 04:18:11 -0400","from chuckie.brightsign ([fd44:d8b8:cab5:cb01::19]\n\thelo=chuckie)\tby elite.brightsign with esmtp (Exim\n\t4.89)\t(envelope-from <mcrowe@brightsign.biz>)\tid\n\t1dvJA1-000B0D-Vm; Fri, 22 Sep 2017 09:18:09 +0100","from mac by chuckie with local (Exim 4.89)\t(envelope-from\n\t<mcrowe@brightsign.biz>)\tid 1dvJA1-0008TS-VG;\n\tFri, 22 Sep 2017 09:18:09 +0100"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender:from\n\t:to:cc:subject:date:message-id; q=dns; s=default; b=TD3ux/nym/ls\n\ti6L7m1AIlLrDDWX0nwcLGS5eGvM9MaQh3SVlKOrwa9RTQDOnVL5jaEMesJCC5HKx\n\tM1EtJjIe1ntgGzZpP/y1fuSAD6evjirH/kxmykXJ+nV7YPwcINI2FGrLV92/11wT\n\tLkEeVAgM6DTAWPjvAY8Kwk7/6zq9Kd4=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender:from\n\t:to:cc:subject:date:message-id; s=default; bh=vW4UJLeGf9UDAFfn03\n\tLedj2J9X4=; b=Ff5BQd2cPZ9Y4shzd+haIDLIlUQ200i5vmIAtQeZxfAgpGM37m\n\tdI+g0XLOoHV1ZzBBp2fGU+B26s9KFL+Z/secolAiCruBDHF28+FShxxLqk+4z0i7\n\tnGfE5oZpNV/BuPu1KRE1wajxYUKKm3YvxuJTPrYULHmY/aWsiNgVw8IqQ=","Mailing-List":"contact gcc-patches-help@gcc.gnu.org; run by ezmlm","Precedence":"bulk","List-Id":"<gcc-patches.gcc.gnu.org>","List-Unsubscribe":"<mailto:gcc-patches-unsubscribe-incoming=patchwork.ozlabs.org@gcc.gnu.org>","List-Archive":"<http://gcc.gnu.org/ml/gcc-patches/>","List-Post":"<mailto:gcc-patches@gcc.gnu.org>","List-Help":"<mailto:gcc-patches-help@gcc.gnu.org>","Sender":"gcc-patches-owner@gcc.gnu.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-11.6 required=5.0 tests=BAYES_00, GIT_PATCH_2,\n\tGIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY,\n\tRCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=","X-Spam-User":"qpsmtpd, 2 recipients","X-HELO":"relay.appriver.com","X-Note":["This Email was scanned by AppRiver SecureTide","SecureTide Build: 7/20/2017 1:24:22 PM UTC (2.6.20.0)","Filtered by 10.238.11.161","ICH-CT/SI:0-1052/SG:1 9/22/2017 4:17:36 AM","TCH-CT/SI:0-23/SG:1 9/22/2017 4:17:36 AM","Spam Tests Failed:","User Rule Hits:","Global Rule Hits: G281 G282 G283 G284 G288 G289 G418","Encrypt Rule Hits:","Mail Class: VALID","Headers Injected"],"X-Note-AR-ScanTimeLocal":"09/22/2017 4:18:11 AM","X-Policy":["brightsign.biz  - brightsign.biz","brightsign.biz  - brightsign.biz","brightsign.biz  - brightsign.biz"],"X-Primary":"mcrowe@brightsign.biz","X-Virus-Scan":"V-","X-Note-SnifferID":"0","X-GBUdb-Analysis":"0, 213.210.30.29, Ugly c=0.529246 p=-0.882353 Source Normal","X-Signature-Violations":"0-0-0-3341-c","X-Country-Path":"->->United Kingdom->United States","X-Note-Sending-IP":"213.210.30.29","X-Note-Reverse-DNS":"elite.brightsigndigital.co.uk","X-Note-Return-Path":"mcrowe@brightsign.biz","From":"Mike Crowe <mac@mcrowe.com>","To":"libstdc++@gcc.gnu.org,\tgcc-patches@gcc.gnu.org","Cc":"Mike Crowe <mac@mcrowe.com>","Subject":"[RFC PATCH 0/4] Make std::future::wait_* use\n\tstd::chrono::steady_clock when required","Date":"Fri, 22 Sep 2017 09:17:24 +0100","Message-Id":"<20170922081728.32508-1-mac@mcrowe.com>"},"content":"This is a first attempt to make std::future::wait_until and\nstd::future::wait_for make correct use of\nstd::chrono::steady_clock/CLOCK_MONOTONIC. It also makes\nstd::future::wait_until react to changes to CLOCK_REALTIME during the\nwait, but only when passed a std::chrono::system_clock time point.\n\nPrior to these patches, the situation is similar to that described at\nhttps://gcc.gnu.org/bugzilla/show_bug.cgi?id=41861 for\nstd::condition_variable, but with the benefit that this time the bug can be\nfixed entirely within libstdc++.\n\n(I've omitted the ChangeLog entries for now, since I don't believe that\nthis is ready to be accepted in its current form.)\n\nMike.\n\nMike Crowe (4):\n  libstdc++ futex: Use FUTEX_CLOCK_REALTIME for wait\n  libstdc++ futex: Support waiting on std::chrono::steady_clock directly\n  libstdc++ atomic_futex: Use std::chrono::steady_clock as reference\n    clock\n  Extra async tests, not for merging\n\n libstdc++-v3/include/bits/atomic_futex.h         | 74 +++++++++++++++++++++--\n libstdc++-v3/src/c++11/futex.cc                  | 48 +++++++++++----\n libstdc++-v3/testsuite/30_threads/async/async.cc | 76 ++++++++++++++++++++++++\n 3 files changed, 181 insertions(+), 17 deletions(-)"}