diff options
author | Matthew Barth <msbarth@us.ibm.com> | 2018-02-16 16:11:13 -0600 |
---|---|---|
committer | Matthew Barth <msbarth@us.ibm.com> | 2018-03-01 09:09:06 -0600 |
commit | 32affb9879b18226b3a026072ce1753f03b7ca58 (patch) | |
tree | 904d3601317005055d5b7c9a7e08ed6896d9733f /monitor/fan.hpp | |
parent | 069e4405a6926cdacc33c0826075356da2cd9dbd (diff) | |
download | phosphor-fan-presence-32affb9879b18226b3a026072ce1753f03b7ca58.tar.gz phosphor-fan-presence-32affb9879b18226b3a026072ce1753f03b7ca58.zip |
optimize: Tach sensors as shared pointers
The fan and trust group objects should utilize shared pointers to the
tach sensor objects. This allows optimizing the storage of additional
attributes associated with the tach sensors.
e.g. An attribute to declare which sensors should be included in the
trust determination.
Tested: Current trust group associations & reactions are unchanged
Change-Id: I249cc7debf467e8275fae7fa157ce97078b40802
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'monitor/fan.hpp')
-rw-r--r-- | monitor/fan.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor/fan.hpp b/monitor/fan.hpp index 0b0c047..fb87b66 100644 --- a/monitor/fan.hpp +++ b/monitor/fan.hpp @@ -190,7 +190,7 @@ class Fan /** * The sensor objects for the fan */ - std::vector<std::unique_ptr<TachSensor>> _sensors; + std::vector<std::shared_ptr<TachSensor>> _sensors; /** * The tach trust manager object |