Re: CLOCK_MONOTONIC issue

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

 



Il 22/06/2015 13:40, Richard Cochran ha scritto:
On Mon, Jun 22, 2015 at 01:06:28PM +0200, Giuliano Colla wrote:
Using as a parameter CLOCK_REALTIME everything appears to work as expected,
but if I attempt to use CLOCK_MONOTONIC (which should be a more reliable
timing source, from what I read), I get bogus times.
What do you mean by "bogus times"?

I mean that the timing of sem_timedwait() appears to be inconsistent with the requested values.
But I believe I've found the reason in the meantime.
According the documentation, sem_timedwait() uses CLOCK_REALTIME, and it would appear that it can't be configured differently. If I supply an absolute time value calculated from a different clock source, of course I'm bound to find inconsistencies!

Thanks however.

Giuliano


--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in



[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux