On Tue, May 20, 2008 at 9:19 AM,  <[EMAIL PROTECTED]> wrote:
> Hi,
>
> what is best way to interrupt a blocked RT-Thread waiting on a Linux
> ressource in secondary mode (e.g. socket) from another NRT-Thread? I can
> successfully detect the blocked state via rt_task_inquire and testing if
> XNRELAX is being set. Is kill(pid, SIGINT) the right way to interrupt
> the blocking system call or are there better ways to do it?

The effect of SIGINT is global, it will unblock all threads in the
process. You have to use a custom signal (either SIGUSR1, SIGUSR1 or a
real-time signal, those from SIGRTMIN to SIGRTMAX), and define an
empty handler for this signal. Then use pthread_kill (instead of kill)
to kill only the proper thread.

-- 
 Gilles

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

Reply via email to