All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Leyrit Vincent <sec.leyrit@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] help with porting simple posix application
Date: Fri, 30 Apr 2010 16:43:44 +0200	[thread overview]
Message-ID: <4BDAECA0.8030006@domain.hid> (raw)
In-Reply-To: <x2qa2d86cab1004300739z5dffe340o7df607e1dc2ec189@domain.hid>

Leyrit Vincent wrote:
> Hello,
> 
> i would like to port a POSIX application on XENOMAI ..

See:
http://www.xenomai.org/index.php/Porting_POSIX_applications_to_Xenomai


> CODE -----------------------------------------------------------------------
> 
> int recursive_method(int cp)
> {
>   struct timeval ta;
>   struct timespec ts_start, ts_end;
> 
>   if(cp < n_recurs)
>     {
>       for(int i=0; i < 10;i++)
>         {
>           clock_gettime(CLOCK_REALTIME,&ts_start);
>           xnprintf("%d\n", ts_start.tv_nsec);

printf here causes a switch to secondary mode.

-- 
					    Gilles.


  reply	other threads:[~2010-04-30 14:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-30 14:39 [Xenomai-help] help with porting simple posix application Leyrit Vincent
2010-04-30 14:43 ` Gilles Chanteperdrix [this message]
2010-04-30 14:48   ` Leyrit Vincent
2010-04-30 14:50     ` Gilles Chanteperdrix
2010-04-30 14:53       ` Leyrit Vincent
2010-04-30 14:56         ` 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=4BDAECA0.8030006@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=sec.leyrit@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.