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

Re: pthread_cond_timedwait

2007-02-13 Thread Corinna Vinschen
On Feb 12 12:10, [EMAIL PROTECTED] wrote: > Hi, > I have tried to use the pthread_cond_timedwait, but it doesn't seem to > work properly. > > It returns immediately with a return value of 116 (ETIMEDOUT) even if I > set the timeout period to e.g. 10 seconds. > > I have locked the mutex and ini

RE: pthread_cond_timedwait accurate to one second only

2003-08-26 Thread Thomas Pfaff
> I would like to use this function down to 10 milliseconds accuracy if > possible. > However upon looking at winsup/cygwin/thread.cc, > it uses the function "ftime" and the millisecond field is ignored. This is already fixed. Try the snapshot. Bit do not expect that you can use it with 10 ms del

RE: pthread_cond_timedwait accurate to one second only

2003-08-25 Thread Hannu E K Nevalainen \(garbage mail\)
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf > Of peter garrone > I would like to use this function down to 10 milliseconds > accuracy if possible. > However upon looking at winsup/cygwin/thread.cc, > it uses the function "ftime" and the millisecond field is ignored. > > All the exam

Re: pthread_cond_timedwait accurate to one second only

2003-08-25 Thread Timothy C Prince
-Original Message- From: "peter garrone" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Date: Mon, 25 Aug 2003 15:42:52 +0800 Subject: pthread_cond_timedwait accurate to one second only Hi. I would like to use this function down to 10 milliseconds accuracy if possible. However upon looking at