rt_task_unblock() POSIX alternative

Richard Weinberger richard.weinberger at gmail.com
Wed Apr 8 12:06:06 CEST 2020


On Wed, Apr 8, 2020 at 11:44 AM Petr ńĆervenka <grugh at centrum.cz> wrote:
>
> > Use pthread_kill() plus a custom signal. Such as SIGRTMIN + 2.
> Calling of kill() or pthread_kill() does not help. Nothing is able to interrupt read() from timerfd (only pthread_cancel). Do I have to prepare the task or timerfd to be interruptible by a signal?

Using the signal you can interrupt the system call. Of course only if
the system call is currently interruptable.
pthread_cancel() in async mode also just sends a signal (SIGCANCEL)
and terminates the thread in a more or less sane way.

-- 
Thanks,
//richard



More information about the Xenomai mailing list