info-cvs
[Top][All Lists]
Advanced

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

Re: Timestamp race avoidance in do_update()


From: Derek R. Price
Subject: Re: Timestamp race avoidance in do_update()
Date: Fri, 16 Feb 2001 14:39:50 -0500

Brad Chisholm wrote:

> On Wed, Feb 14, 2001 at 09:58:46PM -0500, Derek R. Price wrote:
> >
> > Well, it didn't seem very hard to do, so I had configure search for
> > nanosleep, usleep, and select in that order, then use them in the same
> > order of preference, falling back on sleep as a last resort.  It speeds up
> > 'make check' noticeably.
> >
> > Checked in.
>
> Just curious, but will a 20 ms wait be sufficient to prevent timestamp races?
> It appears the times saved in the Entries file have a granularity of 1 sec.

It's checking every 20ms whether the clock has flipped to the next second yet.
Hmm...  maybe later I'll make it wait more exactly when gettimeofday is
available...

Derek

--
Derek Price                      CVS Solutions Architect ( http://CVSHome.org )
mailto:address@hidden     OpenAvenue ( http://OpenAvenue.com )
--
Funny noises are not funny.
Funny noises are not funny.
Funny noises are not funny...

          - Bart Simpson on chalkboard, _The Simpsons_






reply via email to

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