From: Jim Cromie <jim.cromie@domain.hid>
To: Prashanti Bedapudi <pbedapudi@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] help on alarms..
Date: Sun, 07 May 2006 17:11:03 -0400 [thread overview]
Message-ID: <445E6267.6020407@domain.hid> (raw)
In-Reply-To: <445C2D1700022E97@domain.hid> (added by postmaster@domain.hid)
Prashanti Bedapudi wrote:
> Attached is a piece of code using alarms, but I am seeing some unexpected
> behavior. Any help will be appreciated.
>
>
have a look at src/testsuite/latency
it does what I believe youre seeking to do (tho I havent read your code)
> in function main() the program behaves two different ways depending on where
> I have the last printf()
>
> 1. It works fine and terminates as expected if I have it like this
> while(!quit_now)
> printf("quit_now = %d\n", quit_now);
>
> 2. It does not terminate if I have it this way. I know quit_now is set to 1,
> since the last statement printed is 'quit_now is set to 1'.
>
> while(!quit_now);
> printf("quit_now = %d\n", quit_now);
>
> thanks,
> Shanti
>
>
next prev parent reply other threads:[~2006-05-07 21:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.271.1146850846.2786.xenomai@xenomai.org>
2006-05-07 20:33 ` [Xenomai-help] help on alarms Prashanti Bedapudi
2006-05-07 21:11 ` Jim Cromie [this message]
2006-05-07 22:26 ` 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=445E6267.6020407@domain.hid \
--to=jim.cromie@domain.hid \
--cc=pbedapudi@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.