|
Bugzilla – Full Text Bug Listing |
| Summary: | Simulation never finishes when using RealtimeSimulatorImpl | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | alina <aquereilhac> |
| Component: | core | Assignee: | 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 | ||
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. changeset: bcf8ecccfe23 |
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.