All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: tstratman@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Bottom half task scheduling
Date: Sun, 12 Sep 2010 15:48:13 +0200	[thread overview]
Message-ID: <4C8CDA1D.3070703@domain.hid> (raw)
In-Reply-To: <aab9b54738103bc69a5b95bab1eb1627.squirrel@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 642 bytes --]

Am 12.09.2010 15:42, Travis Stratman wrote:
> 
>> Simply create the RTDM task(s) in advance. Creating tasks on demand and
>> in IRQ context would be crazy.
> 
> This is what I have confusion about. After creating a non-cyclic task with rtdm_task_init(), how
> do I restart the task in the interrupt handler? Is there a way to do this using
> rtdm_task_set_period() or some other task function or do I need to have the task wait on an event
> and wake it back up by signaling the event from the ISR?

The latter is the pattern you are looking for. Just loop over
rtdm_event_event and the work it has to perform on wakeup.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]

  reply	other threads:[~2010-09-12 13:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-11 20:08 [Xenomai-help] Bottom half task scheduling Travis Stratman
2010-09-11 20:26 ` Gilles Chanteperdrix
2010-09-12  2:49   ` Travis Stratman
2010-09-12  8:53 ` Jan Kiszka
2010-09-12 13:42   ` Travis Stratman
2010-09-12 13:48     ` Jan Kiszka [this message]
2010-09-12 14:13       ` Travis Stratman

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=4C8CDA1D.3070703@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=tstratman@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.