All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Posix_skin_periodic_tasks
@ 2012-05-29 13:24 Moustapha Bikienga
  2012-05-29 17:31 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 2+ messages in thread
From: Moustapha Bikienga @ 2012-05-29 13:24 UTC (permalink / raw)
  To: xenomai

Hi.

I want to write periodic tasks by using POSIX skin in userspace. My Xenomai
version is 2.6
Where can I see some examples ?


Best regards

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Xenomai] Posix_skin_periodic_tasks
  2012-05-29 13:24 [Xenomai] Posix_skin_periodic_tasks Moustapha Bikienga
@ 2012-05-29 17:31 ` Gilles Chanteperdrix
  0 siblings, 0 replies; 2+ messages in thread
From: Gilles Chanteperdrix @ 2012-05-29 17:31 UTC (permalink / raw)
  To: Moustapha Bikienga; +Cc: xenomai

On 05/29/2012 03:24 PM, Moustapha Bikienga wrote:
> Hi.
> 
> I want to write periodic tasks by using POSIX skin in userspace. My Xenomai
> version is 2.6
> Where can I see some examples ?

"cyclictest" contained in xenomai sources is an example of periodic
task, but it may not be easy to read. The portable way of doing this is
to use clock_nanosleep with the TIMER_ABSTIME flag, updating the struct
timespec argument by adding the fixed period.

The non portable way is to use pthread_make_periodic_np and pthread_wait_np

Documentation of the various services:
http://www.xenomai.org/documentation/xenomai-2.6/html/api/group__posix__time.html#ga924d51d78cdcd9d7dee2613fb3a33cd1
http://www.xenomai.org/documentation/xenomai-2.6/html/api/group__posix__thread.html#gafe8deaa3c89e0a07e59f0e58f9ec1473
http://www.xenomai.org/documentation/xenomai-2.6/html/api/group__posix__thread.html#ga1f18e6e7dd5342463ca8546ef3a36c34

-- 
					    Gilles.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-05-29 17:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-29 13:24 [Xenomai] Posix_skin_periodic_tasks Moustapha Bikienga
2012-05-29 17:31 ` Gilles Chanteperdrix

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.