Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix #870, generic counter table management #871

Merged

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
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants