Skip to content
New issue

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

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

Already on GitHub? Sign in 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
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