Bug 959

Summary: Simulation never finishes when using RealtimeSimulatorImpl
Product: ns-3 Reporter: alina <aquereilhac>
Component: coreAssignee: Craig Dowell <craigdo>
Status: RESOLVED FIXED    
Severity: normal CC: jpelkey, mathieu.lacage, ns-bugs, tomh
Priority: P5    
Version: pre-release   
Hardware: All   
OS: All   
Attachments: patch for RealtimeSimulatorImpl::RunOneEvent

Description alina 2010-07-22 07:43:00 UTC
Created attachment 942 [details]
patch for RealtimeSimulatorImpl::RunOneEvent

In RealtimeSimulatorImpl::RunOneEvent the value next.key.m_ts is being assigned to the m_currentUid member. Instead next.key.m_uid should be assigned.
This provokes RealtimeSimulatorImpl::Cancel to not perform the cancellation of the next(last) event because RealtimeSimulatorImpl::IsExpired returns true when it should not.
Comment 1 Tom Henderson 2010-08-13 01:58:02 UTC
I do not have a testcase for this (the existing realtime examples seem to work without the patch) but I haven't seen any side effects on the realtime tests from including this patch, so I think it is a candidate for merging.
Comment 2 Josh Pelkey 2010-08-16 13:44:52 UTC
changeset: bcf8ecccfe23