From: Philippe Gerum <rpm@xenomai.org>
To: Ronny Meeus <ronny.meeus@gmail.com>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] Xenomai-forge: thread using 100% cpu load
Date: Tue, 05 Mar 2013 14:28:18 +0100 [thread overview]
Message-ID: <5135F2F2.1020407@xenomai.org> (raw)
In-Reply-To: <CAMJ=MEf7VMen7ikfPFpR=4J4SksHT0yiGpOOZySxNcPfezUfcQ@mail.gmail.com>
On 03/05/2013 01:43 PM, Ronny Meeus wrote:
>
> I'm able to reproduce the issue on a small test build:
>
> #include <stdio.h>
> #include <unistd.h>
> #include <sys/types.h>
> #include <sys/mman.h>
> #include <psos.h>
> #include <copperplate/init.h>
> #include <stdlib.h>
> #include <string.h>
>
> static void foo (u_long a0, u_long a1, u_long a2, u_long a3)
> {
> u_long ret, ev = 0, tmid,tmid2;
>
> ret = tm_evevery(1,1,&tmid);
> ret = tm_evafter(30000,4,&tmid2);
> while (1) {
> ret = ev_receive(0xFF,EV_ANY|EV_WAIT,0,&ev);
Can you check the return vakue here?
--
Philippe.
next prev parent reply other threads:[~2013-03-05 13:28 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-28 19:19 [Xenomai] Xenomai-forge: thread using 100% cpu load Ronny Meeus
2013-02-28 20:10 ` Gilles Chanteperdrix
2013-02-28 20:22 ` Thomas De Schampheleire
2013-02-28 20:27 ` Gilles Chanteperdrix
2013-03-01 8:22 ` Philippe Gerum
2013-03-01 8:26 ` Gilles Chanteperdrix
2013-03-01 8:30 ` Philippe Gerum
2013-03-01 8:30 ` Gilles Chanteperdrix
2013-03-01 8:41 ` Philippe Gerum
2013-03-02 11:13 ` Ronny Meeus
2013-03-05 12:43 ` Ronny Meeus
2013-03-05 13:28 ` Philippe Gerum [this message]
2013-03-05 14:08 ` Philippe Gerum
2013-03-05 14:25 ` Ronny Meeus
2013-03-05 14:47 ` Philippe Gerum
2013-03-05 14:53 ` Ronny Meeus
2013-03-06 10:55 ` Ronny Meeus
2013-03-06 11:09 ` Philippe Gerum
2013-03-06 11:18 ` Philippe Gerum
2013-03-06 13:24 ` Philippe Gerum
2013-03-06 13:49 ` Philippe Gerum
2013-03-06 14:32 ` Ronny Meeus
2013-03-06 15:49 ` Philippe Gerum
2013-03-07 10:02 ` Ronny Meeus
2013-03-07 10:32 ` Philippe Gerum
2013-03-07 15:56 ` Philippe Gerum
2013-03-07 19:51 ` Ronny Meeus
2013-03-08 7:44 ` Ronny Meeus
2013-02-28 20:30 ` Ronny Meeus
2013-02-28 20:35 ` Gilles Chanteperdrix
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=5135F2F2.1020407@xenomai.org \
--to=rpm@xenomai.org \
--cc=ronny.meeus@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.