info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(no subject)


From: root
Subject: (no subject)
Date: Mon, 13 Aug 2001 05:24:18 -0400

>From address@hidden  Thu Feb 15 22:47:20 2001
>Return-Path: <address@hidden>
Received: from fencepost.gnu.org (fencepost.gnu.org [199.232.76.164])
        by gateway.camelot.jp (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id 
WAA32260
        for <address@hidden>; Thu, 15 Feb 2001 22:47:18 +0900
Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org)
        by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
        id 14TOfk-0001Lp-00; Thu, 15 Feb 2001 08:42:12 -0500
Received: from [216.200.203.33] (helo=mail.openave.com)
        by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
        id 14TOdX-0001HW-00
        for <address@hidden>; Thu, 15 Feb 2001 08:39:55 -0500
Received: from openavenue.com
          (adsl-63-205-189-231.dsl.snfc21.pacbell.net [63.205.189.231])
          by mail.openave.com (Post.Office MTA v3.5.3 release 223
          ID# 0-61060U3000L300S0V35) with ESMTP id com
          for <address@hidden>; Thu, 15 Feb 2001 05:39:51 -0800
Message-ID: <address@hidden>
From: "Derek R. Price" <address@hidden>
Organization: Open Avenue
X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.17-14 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: address@hidden
Subject: [Fwd: Timestamp race avoidance in do_update()]
Content-Type: multipart/mixed;
 boundary="------------F7E326EDCF2797FC1211C50F"
Sender: address@hidden
Errors-To: address@hidden
X-BeenThere: address@hidden
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:address@hidden>
List-Post: <mailto:address@hidden>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/info-cvs>,
        <mailto:address@hidden>
List-Id: Announcements and discussions for the CVS version control system 
<info-cvs.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/info-cvs>,
        <mailto:address@hidden>
List-Archive: <http://mail.gnu.org/pipermail/info-cvs/>
Date: Thu, 15 Feb 2001 08:39:50 -0500
Status: O
Content-Length: 2344
Lines: 80

This is a multi-part message in MIME format.
--------------F7E326EDCF2797FC1211C50F
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

For posterity.

--
Derek Price                      CVS Solutions Architect ( http://CVSHome.org )
mailto:address@hidden     OpenAvenue ( http://OpenAvenue.com )
--
"If I was modest, I'd be perfect."

        -Ted Turner



--------------F7E326EDCF2797FC1211C50F
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

X-Mozilla-Status2: 00000000
Message-ID: <address@hidden>
Date: Thu, 15 Feb 2001 08:39:06 -0500
From: "Derek R. Price" <address@hidden>
Organization: Open Avenue
X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.17-14 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: Laine Stump <address@hidden>
Subject: Re: Timestamp race avoidance in do_update()
References: <address@hidden>
                <address@hidden> <address@hidden>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Laine Stump wrote:

> I just patched the WinNT files to use a "kind of" usleep (the WinAPI
> Sleep() function is in milliseconds, so I have to divide by 1000). I
> thought of using select() instead, but that would require #including
> winsock2.h, which might have been ugly.

According to the Linux nanosleep man page, due to the current accuracy of the
system timer, Intel machines only have an accuracy of 10ms and Alpha of 1ms,
anyhow.


> +       Sleep(useconds/1000);

I changed this line to

    Sleep(useconds/1000 + (useconds%1000 ? 1 : 0));

It more closely matches the Linux definition of nanosleep (sleeping _at least_
X seconds, barring interrupts).  Linux usleep didn't specify which direction
error would be in, but I thought this made sense.  Besides, it rounds up now,
making it impossible to get zero by accident.

Checked in.

Derek

--
Derek Price                      CVS Solutions Architect ( http://CVSHome.org )
mailto:address@hidden     OpenAvenue ( http://OpenAvenue.com )
--
Where are we going?  And what's with this handbasket?




--------------F7E326EDCF2797FC1211C50F--


_______________________________________________
Info-cvs mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/info-cvs




reply via email to

[Prev in Thread] Current Thread [Next in Thread]