From: Philippe Gerum <rpm@xenomai.org>
To: Nicola Pace <nicola@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] rt_receive / rt_reply
Date: Thu, 08 Jun 2006 16:44:22 +0200 [thread overview]
Message-ID: <448837C6.9040905@domain.hid> (raw)
In-Reply-To: <44883438.1090709@domain.hid>
Nicola Pace wrote:
> After an rt_receive, is it possible to defer the rt_reply to a later
> time and in the meantime to do other rt_receive ? In other words, is the
> following sequence right ?
>
> rt_receive
> ... something received from Task A
> rt_receive
> ... something received from Task B
> rt_receive
> ... something received from Task C
> reply to Task A
> reply to Task C
> .
> .
> .. and so on .
>
Yes, provided you pass rt_task_reply() the proper flow identifier as
received from rt_task_receive() for both ongoing transactions. The
flowid also allows to deal with situations where the requestor vanishes
away while its request is being processed by the receiver, before the
latter has had a chance to reply. In the latter case, the flowid cannot
match any pending requestors, and -ENXIO would be returned.
--
Philippe.
prev parent reply other threads:[~2006-06-08 14:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-08 14:29 [Xenomai-help] rt_receive / rt_reply Nicola Pace
2006-06-08 14:44 ` Philippe Gerum [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=448837C6.9040905@domain.hid \
--to=rpm@xenomai.org \
--cc=nicola@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.