[Xenomai-help] blocked or not blocked call on snippet/shared_mem.c?
Rodrigo Rosenfeld Rosas
lbocseg at yahoo.com.br
Thu Jan 19 16:50:03 CET 2006
Thanks for clarifying!
I think I got the point.
Regards,
Rodrigo.
____________________________________________________________
Em Quarta 18 Janeiro 2006 19:58, você escreveu:
>> I'm confused. Did you really mean TM_NONBLOCK?
>> Am I missing something?
>
>I think you have to read it like this:
>
> Bind to a shared heap which has been created elsewhere, either
> in kernel or user-space. The call will block us until such heap
> is created with the expected name.
>
> Therefore (because we do not want (and are probably unable to, see
>below)), we supply TM_NONBLOCK.
>
> The heap should have been
> created with the H_SHARED mode set, which is implicit when
> creation takes place in user-space.
>
>Additionally, I think the process wouldn't even block if requested because
>it is not a Xenomai thread. Use rt_task_shadow() to promote it. Make sure
>you have a suitable bailout mechanism if you happen to start waiting
>indefinitely.
>
>
>Jeroen.
_______________________________________________________
Yahoo! doce lar. Faça do Yahoo! sua homepage.
http://br.yahoo.com/homepageset.html
More information about the Rtai
mailing list