Fix #2803, reduce complexity in cfe_sb_api.c - #2816
Open
Cameron-Sykes wants to merge 3 commits into
Open
Conversation
Cameron-Sykes
force-pushed
the
fix-2803-cfe-sb-api-complexity
branch
3 times, most recently
from
September 2, 2026 18:39
8e2f364 to
32ff890
Compare
Cameron-Sykes
force-pushed
the
fix-2803-cfe-sb-api-complexity
branch
3 times, most recently
from
September 2, 2026 19:32
4b416e8 to
9c3294e
Compare
Cameron-Sykes
force-pushed
the
fix-2803-cfe-sb-api-complexity
branch
from
September 2, 2026 19:36
9c3294e to
b6502b8
Compare
sylvesterkaczmarek
left a comment
There was a problem hiding this comment.
CFE_SB_MAX_PIPES_MET_EID is now emitted while CFE_SB_LockSharedData is held. EVS event delivery goes through CFE_SB_TransmitMsg, which acquires SB shared data again; the old PendingEventId path deliberately deferred these events until after the final unlock. Preserve that deferred-event pattern (or unlock before sending) and add a max-pipes regression that exercises event delivery.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
name: FSW Code Change
about: Flight Software code changes
labels: fsw
Description of Change
Functions
CFE_SB_CreatePipe()andCFE_SB_SubscribeFull()have high complexity. The complexity was lowered by ...Linked Issue
Closes #2803
Requirements Impact
Testing Evidence
Unit Tests (UT Assert)
COSMOS Test Suite
Areas of Expertise Touched
Author Checklist
.clang-formatReviewer Checklist
.clang-formathas been appliedReviewer Testing Notes