From owner-freebsd-threads@FreeBSD.ORG Thu Dec 22 17:08:53 2011 Return-Path: Delivered-To: threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D598A106566C; Thu, 22 Dec 2011 17:08:53 +0000 (UTC) (envelope-from phk@phk.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 911BA8FC12; Thu, 22 Dec 2011 17:08:53 +0000 (UTC) Received: from critter.freebsd.dk (critter.freebsd.dk [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id 33FCA5DAA; Thu, 22 Dec 2011 17:08:52 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.5/8.14.5) with ESMTP id pBMH8p9l082796; Thu, 22 Dec 2011 17:08:51 GMT (envelope-from phk@phk.freebsd.dk) To: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= From: "Poul-Henning Kamp" In-Reply-To: Your message of "Thu, 22 Dec 2011 18:04:14 +0100." <86vcp8sfld.fsf@ds4.des.no> Content-Type: text/plain; charset=ISO-8859-1 Date: Thu, 22 Dec 2011 17:08:51 +0000 Message-ID: <82795.1324573731@critter.freebsd.dk> Cc: arch@freebsd.org, freebsd-arch@freebsd.org, threads@freebsd.org, Hans Petter Selasky Subject: Re: [Patch] C1X threading support X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2011 17:08:54 -0000 In message <86vcp8sfld.fsf@ds4.des.no>, =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= wr ites: >There is no such thing as a kernel in the C standard. All it knows >about is the implementation and the program. The best solution would >probably have been a timescale that counts the time elapsed since the >start of the program. That is requiring far more than necessary: All that is needed is a monotonic timescale, such as the, precisely named, CLOCK_MONOTONIC timescale POSIX introduced to solve the exact same kind of issues. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.