qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v3 01/10] Introduce qemu_cond_timedwait for POSI


From: malc
Subject: Re: [Qemu-devel] [PATCH v3 01/10] Introduce qemu_cond_timedwait for POSIX
Date: Thu, 5 Apr 2012 17:00:45 +0400 (MSK)
User-agent: Alpine 2.00 (LNX 1167 2008-08-23)

On Thu, 5 Apr 2012, Jan Kiszka wrote:

> On 2012-04-05 14:56, Paolo Bonzini wrote:
> > Il 05/04/2012 14:53, malc ha scritto:
> >> On Thu, 5 Apr 2012, Paolo Bonzini wrote:
> >>
> >>> Il 05/04/2012 14:30, malc ha scritto:
> >>>>>> Would save that "* 1000". I just wondered why we do not use it 
> >>>>>> elsewhere
> >>>>>> in QEMU and was reluctant to risk some BSD breakage.
> >>>>>>
> >>>> It's probably worth mentioning that using anything other than 
> >>>> clock_gettime and CLOCK_MONOTONING (as well as setting proper pthread
> >>>> clock attr on the condition variable) is prone to the surprises (such
> >>>> as NTP corrections and daylight saving changes).
> >>>
> >>> I was about to suggest the same, but how widespread is support for
> >>> pthread_condattr_setclock?
> >>
> >> If it's not all is lost anyway.
> > 
> > Only once every year. :)
> 
> ...and not for the current user of this service which do not care that
> much about the timeout and a potential delay or early shot.
> 

An hour of potential delay mind you.

-- 
mailto:address@hidden



reply via email to

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