timer server fire when with time adjust

Joel Sherrill joel.sherrill at OARcorp.com
Wed Jun 10 14:28:19 UTC 2009



Sergio Faustino wrote:
> Ok! No problem.
>
>   
Thanks for the test.  I committed it as sp52 and sp53.  The
server version indeed does not fire the timers.  If you want to
fire a PR, go ahead. 

I will have to think about a clean solution.  I don't think it is
technically hard to fix.  The timer server code is just completely
optional and I want to ensure it stays that way.

--joel
> Here it goes.
>
> At line 65 is the rtems_timer_server_fire_when call, if you replaced with 
> (comment) ln 64 the test works fine.
>
> Regards
>
>
> On Monday 08 June 2009 15:37:14 you wrote:
>   
>> Could be a bug.  Can you submit a small self-contained
>> test case?
>>
>> --joel
>>
>> Sergio Faustino wrote:
>>     
>>> Hi
>>>
>>> I've been looking at RTEMS for some time and now I have a doubt regarding
>>> the time management in RTEMS.
>>>
>>> The user manual states that:
>>>
>>> "The rtems_clock_set directive allows a task or an ISR to set the date
>>> and time maintained by RTEMS. If setting the date and time causes any
>>> outstanding timers to pass their deadline, then the expired timers will
>>> be fired during the invocation of the rtems_clock_set directive."
>>>
>>> From my understanding, this is also applicable to timers fired by the
>>> timer server.
>>>
>>> However, when I tested this, this does not appear to be working (on RTEMS
>>> 4.8.0).
>>>
>>> The test basically consists of creating and firing 3 timers with the
>>> rtems_timer_server_wake_when routine. When a rtems_clock_set is done (to
>>> a forward time) the timers should fire immediatly but, in reality, they
>>> fire later on.
>>>
>>> The same test with rtems_timer_fire_when (without the timer server) works
>>> properly.
>>>
>>> I guess this could be an RTEMS bug...
>>>
>>> Best Regards,
>>> Sergio Faustino
>>> _______________________________________________
>>> rtems-users mailing list
>>> rtems-users at rtems.org
>>> http://www.rtems.org/mailman/listinfo/rtems-users
>>>       
>
>
>   


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985





More information about the users mailing list