|
Bugzilla – Full Text Bug Listing |
| Summary: | PriorityQueueScheduler | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Alexander Krotov <krotov> |
| Component: | core | Assignee: | Peter Barnes <pdbarnes> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | CC: | ns-bugs, tomh |
| Priority: | P5 | ||
| Version: | ns-3-dev | ||
| Hardware: | All | ||
| OS: | All | ||
|
Description
Alexander Krotov
2016-09-18 16:16:25 UTC
Cancel just marks the events as cancelled. Remove actually removes them from the Scheduler, freeing memory. There are cases where one or the other is a better choice, so I'd prefer to leave Remove as an option. +1 to replace with Cancel(), making this a GCI task +1 to implement priority_queue, making this a GCI task Need to add this to bench-simulator as well, making a GCI task. My mistake, I see the first commit *does* add it to bench-simulator. This is three contributions. Complete the set of comparison operators (< == != >) for Event and EventKey Alexander Krotov's PriorityQueueScheduler, from Bug 2503 GCI 2019 patch which implements Remove for the PriorityQueueScheduler (the underlying std::priority_scheduler doesn't support remove() natively.) Upstream merge request: https://gitlab.com/nsnam/ns-3-dev/-/merge_requests/199 Please DO NOT SQUASH these on merge. Added to ns-3-dev in a series of patches from Peter, starting at commit 4434c65c Replace Remove with Cancel merged in 1f3735f6f06d7b58d634c51e89af6f3bd9145deb |