This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: linuxthreads, POSIX 1003.1j and CLOCK_MONOTONIC


On Wed, Jul 10, 2002 at 07:16:17PM -0700, Brian Kuschak wrote:
> 
> The issue is that the existing 1003.1c implementation
> has race conditions with respect to system clock
> discontinuities.  The POSIX working group knows this,
> which is why they addressed it in 1003.1j.  
> 

That is the real problem for us. I use

  while ((timeout->tv_sec > 0 || timeout->tv_nsec > 0)
	 && __libc_nanosleep(timeout, timeout) != 0);

I can live with the library overhead.


H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]