OMNeT++/OMNEST Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000965OMNeT++IDE / C++ developmentpublic2016-08-11 13:352017-03-02 13:20
Reporteryonatanshe 
Assigned Toandras 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version5.1pre3 
Summary0000965: wrong message arrival order when changing messages priority
Descriptionif we send two messages like this:
send(simTime(),msg1); //with prio 0
send(simTime(),msg2); //with negative prio
the first message will arrive first, due to that line:

    if (event->getArrivalTime()==simTime() && event->getSchedulingPriority()==0 && (n==0 || h[1]->getArrivalTime()!=simTime()))


in cmessageheap
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0001332)
andras (administrator)
2017-03-02 13:20

This was fixed as "sim: cEventHeap: fix: events scheduled for current simulation time w/ negative priority were handled incorrectly"

Also see test/core/cEventHeap_stress_1.test

- Issue History
Date Modified Username Field Change
2016-08-11 13:35 yonatanshe New Issue
2017-03-02 13:20 andras Note Added: 0001332
2017-03-02 13:20 andras Status new => resolved
2017-03-02 13:20 andras Fixed in Version => 5.1pre3
2017-03-02 13:20 andras Resolution open => fixed
2017-03-02 13:20 andras Assigned To => andras


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker