All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Giorgio Buffa" <giorgiobuffa.work@gmail.com>
To: xenomai@xenomai.org
Subject: [Xenomai] How to use timer services without switching to secondary mode?
Date: Thu, 23 Jul 2015 10:07:40 +0200	[thread overview]
Message-ID: <00a901d0c51e$a62a1190$f27e34b0$@gmail.com> (raw)

Hello list!
I have to write a Xenomai 2.6.4 thread that is activated upon the
expiration of a (periodic) timer. It is not clear to me how to do that
without switching to secondary mode.

I would like to stick with the POSIX skin but, in my understanding, with
the POSIX skin, using the `timer_create()` and `timer_settime()` I will
switch to secondary mode on timer expiration, because a signal is
generated by that event. Is it correct?

On the other hand, the switching to secondary mode does not happens
using the Native Xenomai API, i.e. `rt_alarm_create()` and
`rt_alarm_start()`. Am I wrong?

What are the options available for that purpose? Should I use the
`pthread_make_periodic_np()` instead? What are the differences wrt
`timer_*` calls?

Thank you for the support and kind regards,
Giorgio B.



             reply	other threads:[~2015-07-23  8:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-23  8:07 Giorgio Buffa [this message]
2015-07-23  8:39 ` [Xenomai] How to use timer services without switching to secondary mode? Philippe Gerum

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='00a901d0c51e$a62a1190$f27e34b0$@gmail.com' \
    --to=giorgiobuffa.work@gmail.com \
    --cc=xenomai@xenomai.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.