rt_task_unblock() POSIX alternative

Richard Weinberger richard.weinberger at gmail.com
Wed Apr 8 23:36:43 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?

BTW: Why do you think nothing can interrupt a read() from a timerfd?
If read() blocks on a timerfd the calling thread will be put into
interruptable sleep.


More information about the Xenomai mailing list