#147 closed defect (fixed)

server based time fires incorrectly

Reported by: Joel Sherrill Owned by: Joel Sherrill
Priority: normal Milestone: 2
Component: score Version: unknown
Severity: major Keywords:
Cc: bugs@… Blocked By:


In the following scenario, a server based timer fires too early.

Time Action


0 rtems_timer_server_fire_after(timer1, 1000)
0 rtems_task_wake_after(500)

500 rtems_timer_server_fire_after(timer2, 250)

The problem is in the order of syncing the timer server
chain and inserting the new timer. The current order
results in timer2 being inserted before the chain is
adjusted for the 500 ticks which have passed. This
results in timer2 firing immediately because it fires
in 250 ticks which is less than the 500 ticks we
are adjusting.


all BSPs

Attachments (2)

sp31.diff (1.9 KB) - added by Joel Sherrill on 12/03/06 at 13:31:13.
pr147.diff (14.4 KB) - added by Joel Sherrill on 12/03/06 at 13:31:13.

Download all attachments as: .zip

Change History (2)

comment:1 Changed on 03/29/02 at 14:32:24 by Joel Sherrill

Status: assignedclosed

State-Changed-From-To: working->closed
State-Changed-Why: Patch applied.

Changed on 12/03/06 at 13:31:13 by Joel Sherrill

Attachment: sp31.diff added


Note: See TracTickets for help on using tickets.