Expose health table mutex publically #64
Reference in New Issue
Block a user
Delete Branch "baumgartl/expose-healthtable-mutex"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Each health table get/set operation is mutex protected. The mutex timeout is relatively long- per default set to 20ms. When a user needs to read/write a lot of health states, this can be quite time intensive.
By exposing the mutex publically via a getter function, health table users may lock the mutex once with a custom timeout and then proceed with the usual get/set operations without a time penalty, since fsfw mutex supports recursive locking (mutex doesn't need to be locked twice by the same task).