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/

Reply via email to