[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rtl] suspend + delay mechanism?
> Is it possible to do an pthread_suspend_np with a delay in RT-Linux
> (3.0)? I'd like to suspend a task, but if he isn't woken up (e.g.
> lost the interrupt), I want to pop out of the suspend and poll.
>
> The easiest way I see is to use pthread_wait_np(), in a periodic
> task, and use (if possible) pthread_wakeup_np() to awaken it from
> the intr handler. But based on the man pages, it isn't explicitly
> stated that I can "pthread_wakeup_np" a thread that hasn't used
> pthread_suspend_np() to suspend itself.
that's what I am doing and it looks like it is working.
Would really be nice to know if it just works by accident!
Heinz