From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <5135F2F2.1020407@xenomai.org> Date: Tue, 05 Mar 2013 14:28:18 +0100 From: Philippe Gerum MIME-Version: 1.0 References: <512FB9B5.9040709@xenomai.org> <51306545.1010200@xenomai.org> <5130663F.7070209@xenomai.org> <51306710.5030201@xenomai.org> <5130673D.2090700@xenomai.org> <513069D5.1090508@xenomai.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] Xenomai-forge: thread using 100% cpu load List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ronny Meeus Cc: xenomai@xenomai.org On 03/05/2013 01:43 PM, Ronny Meeus wrote: > > I'm able to reproduce the issue on a small test build: > > #include > #include > #include > #include > #include > #include > #include > #include > > 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.