On Tue, Apr 7, 2020 at 5:18 PM Petr Červenka via Xenomai
<xenomai@xenomai.org> wrote:
>
> Hello Jan.
> And if I don't want to totally remove the thread? Only to interrupt the 
> waiting and react according to new events (like reconfiguring something or 
> starting to wait on different resource).
> Is there some pthread_create... or sched_... parameter or flag, that the 
> task's system call can be interruptible?
> And how to use the signals to interrupt it? Call of kill(task_pid, SIGINT) 
> didn't helped.

Use pthread_kill() plus a custom signal. Such as SIGRTMIN + 2.

-- 
Thanks,
//richard

Reply via email to