Hi Stephen,
You can change periods. The only thing that I've fallen foul of is that
if you are in periodic clock mode, changing the period can cause you to
get erratic frames at the changeover, using oneshot solved this.
Regards, Stuart
"Stephen D. Cohen" wrote:
>
> Gang,
>
> How the heck do I change a threads period? I am currently doing
> something like this:
>
> Before infinite loop:
>
> pthread_make_periodic_np(pthread_self(), gethrtime(), period);
>
> In the infinite loop:
>
> while (1 != 2) {
> pthread_wait_np();
> ... other stuff ...
> if (fifo says to do so) {
> pthread_make_periodic_np(thread_self(), gethrtime(),
> new_period_from_fifo);
> }
> }
>
> What happens is that the process hangs on the "if fifo says so"
> pthread_make_periodic_np call (or there abouts) and never gets awoken again.
>
> What gives? Is anyone successfully changing periods on periodic
> tasks? If so, how?
>
> Steve
>
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/