All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tobias Marschall <tmarscha@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] some questions about alarms
Date: Fri, 21 Apr 2006 17:11:44 +0200	[thread overview]
Message-ID: <200604211711.44211.tmarscha@domain.hid> (raw)

Hello,

my application needs (besides doing some other stuff) to set some output 
signals on an interface card at specific points in time. I think such a 
simple thing doesn't deserve its own thread and am considering to use alarms 
for this.

Is it correct that the handler of an alarm is executed with the same priority 
as the thread that created it? Meaning that the alarm execution will be 
delayed if a higher-priority (primary mode) thread is running at the time the 
alarm expires?

In my case it would be most convenient to be able to program an alarm timer 
using an absolute time (date). I didn't find such a function in the API 
documentation (native skin). Is the absense of such a function intended or 
did simply nobody implement it? Is it possible to implement such a function 
by just modifying the native skin?

But perhaps there is a better way to solve my issue. Is there any "best 
practice" for my problem? By now I see to possibilities: 1) Use a 
rt_timer_read in connection with alarms. 2) Spawn a whole thread and use 
rt_task_sleep_until.

Any Ideas?

Best regards and thanks in advance,
Tobias


             reply	other threads:[~2006-04-21 15:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-21 15:11 Tobias Marschall [this message]
2006-04-22 10:08 ` [Xenomai-help] some questions about alarms 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=200604211711.44211.tmarscha@domain.hid \
    --to=tmarscha@domain.hid \
    --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.