rt_task_unblock() POSIX alternative
richard.weinberger at gmail.com
Tue Apr 7 17:30:09 CEST 2020
On Tue, Apr 7, 2020 at 5:18 PM Petr Červenka via Xenomai
<xenomai at 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.
More information about the Xenomai