Re: pthread_cond_timedwait with setclock(CLOCK_MONOTONIC) times out early

2018-12-02 Thread Corinna Vinschen
On Dec 1 08:49, Brian Inglis wrote: > On 2018-12-01 02:53, Corinna Vinschen wrote: > > On Nov 30 21:27, Brian Inglis wrote: > >> $ head /{etc,usr/lib}/os-release > >> ==> /etc/os-release <== > >> PRETTY_NAME="Debian GNU/Linux 9 (stretch)" > >> NAME="Debian GNU/Linux" > >> VERSION_ID="9" > >> VERSI

Re: pthread_cond_timedwait with setclock(CLOCK_MONOTONIC) times out early

2018-12-01 Thread Brian Inglis
On 2018-12-01 02:53, Corinna Vinschen wrote: > On Nov 30 21:27, Brian Inglis wrote: >> On 2018-11-30 05:56, Corinna Vinschen wrote: >>> On Nov 30 07:43, James E. King III wrote: On Fri, Nov 30, 2018 at 7:23 AM Corinna Vinschen wrote: > On Nov 29 17:38, James E. King III wrote: >> On Th

Re: pthread_cond_timedwait with setclock(CLOCK_MONOTONIC) times out early

2018-12-01 Thread Corinna Vinschen
On Nov 30 21:27, Brian Inglis wrote: > On 2018-11-30 05:56, Corinna Vinschen wrote: > > On Nov 30 07:43, James E. King III wrote: > >> 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 wrot

Re: pthread_cond_timedwait with setclock(CLOCK_MONOTONIC) times out early

2018-11-30 Thread Brian Inglis
On 2018-11-30 05:56, Corinna Vinschen wrote: > On Nov 30 07:43, James E. King III wrote: >> 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 wrote: > I created a patch and uploaded new dev

Re: pthread_cond_timedwait with setclock(CLOCK_MONOTONIC) times out early

2018-11-30 Thread Corinna Vinschen
On Nov 30 07:43, James E. King III wrote: > 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.co

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 give them a try. > > > > This fixed

Re: pthread_cond_timedwait with setclock(CLOCK_MONOTONIC) times out early

2018-11-30 Thread Corinna Vinschen
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 give them a try. > > This fixed the issue for me. What's the best way to detect cygwin > with this s

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 Nov 25 09:01, James E. King III wrote: > > > > > I have isolat

Re: pthread_cond_timedwait with setclock(CLOCK_MONOTONIC) times out early

2018-11-29 Thread Corinna Vinschen
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 Nov 25 09:01, James E. King III wrote: > > > > I have isolated a problem in pthread_cond_timedwait when the condattr > > > > is used

Re: pthread_cond_timedwait with setclock(CLOCK_MONOTONIC) times out early

2018-11-26 Thread Corinna Vinschen
On Nov 26 10:47, James E. King III wrote: > 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

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 time point in the future is

Re: pthread_cond_timedwait with setclock(CLOCK_MONOTONIC) times out early

2018-11-26 Thread Corinna Vinschen
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 time point in the future is specified, the call > returns ETIMEDOUT but a subsequent call to > c

pthread_cond_timedwait with setclock(CLOCK_MONOTONIC) times out early

2018-11-25 Thread James E. King III
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 time point in the future is specified, the call returns ETIMEDOUT but a subsequent call to clock_gettime(CLOCK_MONOTONIC) shows the desired time