Allow PST insertion in any order #46

Closed
opened 2020-04-19 21:25:42 +02:00 by muellerr · 0 comments
Owner

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

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
muellerr added the
feature
label 2020-04-22 19:10:13 +02:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: fsfw/fsfw#46
No description provided.