All of lore.kernel.org
 help / color / mirror / Atom feed
From: Giuliano Colla <giuliano.colla@fastwebnet.it>
To: linux-rt-users@vger.kernel.org
Subject: Re: CLOCK_MONOTONIC issue
Date: Mon, 22 Jun 2015 14:42:12 +0200	[thread overview]
Message-ID: <558802A4.10908@fastwebnet.it> (raw)
In-Reply-To: <20150622114023.GB2539@netboy>

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

      reply	other threads:[~2015-06-22 12:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-22 11:06 CLOCK_MONOTONIC issue Giuliano Colla
2015-06-22 11:40 ` Richard Cochran
2015-06-22 12:42   ` Giuliano Colla [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=558802A4.10908@fastwebnet.it \
    --to=giuliano.colla@fastwebnet.it \
    --cc=linux-rt-users@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.