From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: "Alessio Margan @ IIT" <alessio.margan@domain.hid>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] thread and posix skin
Date: Mon, 18 Jan 2010 15:52:39 +0100 [thread overview]
Message-ID: <4B5475B7.2070702@domain.hid> (raw)
In-Reply-To: <4B5473FE.7050704@domain.hid>
Alessio Margan @ IIT wrote:
> Hi,
>
> I've got problem using pthread_make_periodic_np and pthread_wait_np.
> Should I make some particular initializations ?
> CONFIG_XENO_OPT_TIMING_PERIOD=y have sense ?
It is unrelated. CONFIG_XENO_OPT_TIMING_PERIODIC means that you request
a periodic timer instead of the default which is one-shot. Which means
all your wake-ups will be aligned on timer ticks.
> In the examples and testsuite I 've just seen the use of clock_nanosleep
> with pthread,
> should I use it instead of pthread_make_periodic_np ?
As you wish.
>
> This is the thread routine, I get error on pthread_wait_np() return code
> 110.
Can't tell, your sample code does not compile here. 110 is ETIMEDOUT, it
is usually returned when the start time has already passed. As
documented here:
http://www.xenomai.org/documentation/xenomai-2.5/html/api/group__posix__thread.html#gafe8deaa3c89e0a07e59f0e58f9ec1473
--
Gilles.
prev parent reply other threads:[~2010-01-18 14:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-18 14:45 [Xenomai-help] thread and posix skin Alessio Margan @ IIT
2010-01-18 14:52 ` Gilles Chanteperdrix [this message]
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=4B5475B7.2070702@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=alessio.margan@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.