On Mon, 2007-09-03 at 11:26 +0700, Iwan Budi Kusnanto wrote:
> Hello all
> why rt_sem_p does not have behaviour like down_interruptible (that
> receive a signal while being blocked on a semaphore to give up the
> "down"/"p" operation).Is that a bad design?
> sem_wait (posix skin)have behaviour like that.

rt_sem_p automatically switches the pending thread to secondary mode
upon signal receipt, so that it can process this signal from a regular
Linux context, then -EINTR is returned to the caller.

> 
> In what situation we must use posix skin?
> In what situation we must use native skin?
> 

The native skin resembles traditional RTOS interfaces; if you know about
VxWorks, VRTX, pSOS and the like, it should sound familiar.
OTOH, choosing the POSIX interface has the advantage of keeping all
options open to move away from Xenomai, since it aims at conforming to
the opengroup's specs.

> thx
> 
> 
-- 
Philippe.



_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to