Allow PST insertion in any order #46
Labels
No Label
API Change
Breaking API Change
bug
build
cosmetics
Documentation
duplicate
feature
help wanted
hotfix
invalid
question
Refactor
Tests
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: fsfw/fsfw#46
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Right now, device handler slots must be inserted in the correct order.
Using a std::multiset instead of a std::list, insertion in any order would be possible. I think this would be a nice feature because it is convenient when the PST is not generated automatically and I suspect the overhead will be marginal (I can measure it if someone has concerns). The list stored pointers, but I think for a STL container its ok to just store the class entry, which also simplifies the syntax for iteration over the list.
The < operator was overloaded for the FixedSequenceSlot to allow this.
See pull request #24 , which also proposes a possible fix for the FreeRTOS sanity check error for slotTime = 0
Label: Enhacement
Changes to existing code:
There should be no changes, and PST entries should be able to be inserted in any order for FreeRTOS