LEBRETON, Julien wrote:
> I have some mistake about rt_task_start routine. 
> Does rt_task_start works like a pthread_create?

It is similar in many ways, yes - but please direct Xenomai-specific
questions to xenomai-help at gna.org.

> I have to create 3 threads for each interfaces of my board. In the thread's 
> routine, I want to create a socket and bind it to a sockaddr_in structure 
> passed in argument of pthread_create.. 
> So instead of creating 3 thread with pthread_create, can I start 3 task with 
> rt_task_start? 
> 
> I hope I'm clear.. 

When creating sockets from within a real-time task, make sure it is in
the desired mode: Depending on the caller context, RTnet will (at least
up to now) allocate socket buffers from different memory buffers, and
the one for RT contexts is empty by default (as this is a special case).
Check README.pools on this. Regarding automatic and explicit control of
the task mode (RT vs. Linux aka primary vs. secondary) see the Xenomai
documentation.

Jan

Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to