Skip to content

Fix #870, generic counter table management#871

Merged
yammajamma merged 1 commit intonasa:integration-candidatefrom
jphickey:fix-870-gencounter-tbl-mgmt
Sep 10, 2020
Merged

Fix #870, generic counter table management#871
yammajamma merged 1 commit intonasa:integration-candidatefrom
jphickey:fix-870-gencounter-tbl-mgmt

Conversation

@jphickey
Copy link
Contributor

@jphickey jphickey commented Sep 9, 2020

Describe the contribution
Apply the appid/taskid pattern to Generic Counter resources.

Testing performed
Unit tests
Build and sanity test CFE.

Expected behavior changes
No real logic change - just putting the repeated logic into inline functions.

However, This does add a CFE_ES_LockSharedData() wrapper around counter ID allocation, deletion, and lookup to avoid a possible race condition here. This was likely a bug, but never noticed perhaps because these aren't a heavily used feature.

System(s) tested on
Ubuntu 20.04

Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.

@jphickey jphickey added CCB:Ready Ready for discussion at the Configuration Control Board (CCB) enhancement labels Sep 9, 2020
Apply the appid/taskid pattern to Generic Counter resources.
No real logic change - just putting the repeated logic into
inline functions.
@jphickey jphickey force-pushed the fix-870-gencounter-tbl-mgmt branch from 193d9bb to 5ebd865 Compare September 9, 2020 14:47
@jphickey
Copy link
Contributor Author

jphickey commented Sep 9, 2020

Ping @astrogeco and @yammajamma - can add this to CCB agenda too

@astrogeco
Copy link
Contributor

CCB 2020-09-09 APPROVED, in the future should move to changing IDs to not be zero based and non-repeating to protect against using the wrong counter. Link thread safety issues and open issues to visualize, track, and understand what needs to be fixed.

@yammajamma yammajamma added IC-20200909 and removed CCB:Ready Ready for discussion at the Configuration Control Board (CCB) labels Sep 10, 2020
@yammajamma yammajamma merged commit 359305c into nasa:integration-candidate Sep 10, 2020
@jphickey jphickey deleted the fix-870-gencounter-tbl-mgmt branch September 29, 2020 21:52
@skliper skliper added this to the 7.0.0 milestone Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants