Hi Herman,

Herman Bruyninckx ([EMAIL PROTECTED]) wrote:
> In the documentation of rtlv3.0 (test 9) I read:
> pthread_make_periodic_np : ``[...]If the period is equal to 0, the
> task will be released once at the start_time.[...]''
> (This sounds like one shot timer programming?)
> 
> On the other hand, the code in schedulers/rtl_sched.c says:

I guess nobody used this one-shot mode with RTLinux yet.

>    int pthread_make_periodic_np (pthread_t p, hrtime_t start_time,
>    hrtime_t period)
>    {
>            rtl_irqstate_t interrupt_state;
>            if (period <= 0) {
>                    return EINVAL;
>            }
> 
>    [...]
> 
> which indicates that a period equal to 0 returns an error...
> 
> Is this an accidental inconsistency between code and documentation, or
> a misinterpretation by me?

We can interpret it either way:) I'd say, scheduler needs to be fixed
to check for period < 0, not <=0.

Thanks for the note!

Michael.

-- [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