From: Philippe Gerum <rpm@xenomai.org>
To: Sagi Maimon <SMaimon@advaoptical.com>,
"xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] Using xenomai posix routines instead of Linux POSIX routines
Date: Mon, 30 Mar 2015 15:49:57 +0200 [thread overview]
Message-ID: <55195485.9070302@xenomai.org> (raw)
In-Reply-To: <7615c5d3d380485499b229435e14ee65@MUC-S-EX13B.advaoptical.com>
On 03/30/2015 03:40 PM, Sagi Maimon wrote:
> Hi,
>
> Until now I have created RT xenomai threads, by using the skin native API:
> kernel/xenomai/skins/native/task.c (rt_task_create routine)
>
> and for creating Linux threads, I have used the "pthread_create" routine (.../powerpc-e300c3-linux-gnu/usr/lib/libpthread.so)
>
> xenomai also implements POSIX API:
> kernel/xenomai/skins/posix/thread.c
> And by looking at the code (and according to documentation), by calling "pthread_create" routine , xenomai creates RT threads.
>
>
> My question:
> I want to use the xenomai POSIX API, so How can I use the xenomai "pthread_create" routine, instead of the one from (.../powerpc-e300c3-linux-gnu/usr/lib/libpthread.so)?
> should I add something to my Makefile?
> Should I remove "-lpthread" parameter from my application Makefile?
>
This document explains how to create real-time POSIX applications with
Xenomai:
http://xenomai.org/2014/08/porting-a-linux-application-to-xenomai-dual-kernel/#Compilation_for_the_Xenomai_POSIX_skin
--
Philippe.
next prev parent reply other threads:[~2015-03-30 13:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-30 13:40 [Xenomai] Using xenomai posix routines instead of Linux POSIX routines Sagi Maimon
2015-03-30 13:49 ` Philippe Gerum [this message]
2015-03-31 6:23 ` Sagi Maimon
2015-03-31 7:04 ` Philippe Gerum
2015-03-31 7:16 ` Sagi Maimon
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=55195485.9070302@xenomai.org \
--to=rpm@xenomai.org \
--cc=SMaimon@advaoptical.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.