Re: pthread_cond_timedwait with setclock(CLOCK_MONOTONIC) times out early

2018-11-30 Thread James E. King III
On Fri, Nov 30, 2018 at 7:23 AM Corinna Vinschen wrote: > > On Nov 29 17:38, James E. King III wrote: > > On Thu, Nov 29, 2018 at 5:18 AM Corinna Vinschen > > > I created a patch and uploaded new developer snapshots to > > > https://cygwin.com/snapshots/ Please

Re: pthread_cond_timedwait with setclock(CLOCK_MONOTONIC) times out early

2018-11-29 Thread James E. King III
On Thu, Nov 29, 2018 at 5:18 AM Corinna Vinschen wrote: > > On Nov 26 17:46, Corinna Vinschen wrote: > > On Nov 26 10:47, James E. King III wrote: > > > On Mon, Nov 26, 2018 at 10:35 AM Corinna Vinschen > > > wrote: > > > > > > > > On N

Re: pthread_cond_timedwait with setclock(CLOCK_MONOTONIC) times out early

2018-11-26 Thread James E. King III
On Mon, Nov 26, 2018 at 10:35 AM Corinna Vinschen wrote: > > On Nov 25 09:01, James E. King III wrote: > > I have isolated a problem in pthread_cond_timedwait when the condattr > > is used to set the clock type to CLOCK_MONOTONIC. In this case even > > though a target tim

pthread_cond_timedwait with setclock(CLOCK_MONOTONIC) times out early

2018-11-25 Thread James E. King III
Mount registry: 3 Cygwin registry name: Cygwin Installations name: Installations Cygdrive default prefix: Build date: Shared id: cygwin1S5 /* * Copyright (C) 2018 James E. King III * * This test exposes a problem in cygwin's condition var

No thread safety in clock_gettime (hires_ns::prime)

2018-11-23 Thread James E. King III
tallations Cygdrive default prefix: Build date: Shared id: cygwin1S5 /* * Copyright (C) 2018 James E. King III * * Exposes a race condition in hires clock initialization * If two threads call ::clock_gettime(CLOCK_MONOTONIC) they * will race to perform one-time global initialization.