Expose health table mutex publically #64

Merged
muellerr merged 1 commits from baumgartl/expose-healthtable-mutex into main 2026-01-09 13:34:10 +01:00
3 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Switched to vendored versions for both the Embedded Template Library (ETL) and the
Catch2 unittesting library.
- Increased maximum number of mode tables from 70 to 100
- Exposed health table mutex via getter function
## Added
- `EventManager`: Add function to print all listeners.
+4
View File
@@ -112,3 +112,7 @@ ReturnValue_t HealthTable::iterate(HealthEntry* value, bool reset) {
mapIterator++;
return result;
}
MutexIF* HealthTable::getMutex() {
return mutex;
}
+2
View File
@@ -28,6 +28,8 @@ class HealthTable : public HealthTableIF, public SystemObject {
virtual void setHealth(object_id_t object, HasHealthIF::HealthState newState) override;
virtual HasHealthIF::HealthState getHealth(object_id_t) override;
MutexIF* getMutex();
protected:
using HealthMap = std::map<object_id_t, HasHealthIF::HealthState>;
using HealthEntry = std::pair<object_id_t, HasHealthIF::HealthState>;