summaryrefslogtreecommitdiffstats
path: root/src/propertywatchimpl.hpp
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2017-05-20 21:42:38 -0400
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2017-06-19 16:26:44 -0400
commitc1283ae8472dbd4e2c3593b76b7600ac72640b80 (patch)
tree1e45c148d19a59a561df430a1f4ba3728196d910 /src/propertywatchimpl.hpp
parent893b348890781dba2603ead61cf6f724350d0b47 (diff)
downloadphosphor-dbus-monitor-c1283ae8472dbd4e2c3593b76b7600ac72640b80.tar.gz
phosphor-dbus-monitor-c1283ae8472dbd4e2c3593b76b7600ac72640b80.zip
Add support for callbacks
Callbacks are the response in the PDM 'trigger->response' model. Add general support for implementing callbacks and implement a log to systemd journal using that framework. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Change-Id: I8bead5368ee5472a02b47e8bba9e9df3a1f346bc
Diffstat (limited to 'src/propertywatchimpl.hpp')
-rw-r--r--src/propertywatchimpl.hpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/propertywatchimpl.hpp b/src/propertywatchimpl.hpp
index 46799ed..6e957ae 100644
--- a/src/propertywatchimpl.hpp
+++ b/src/propertywatchimpl.hpp
@@ -32,10 +32,6 @@ void PropertyWatch<DBusInterfaceType>::start()
{
return;
}
- else
- {
- alreadyRan = true;
- }
// The index has a flat layout which is not optimal here. Nest
// properties in a map of interface names in a map of object paths.
@@ -107,6 +103,8 @@ void PropertyWatch<DBusInterfaceType>::start()
}
}
}
+
+ alreadyRan = true;
}
template <typename T, typename DBusInterfaceType>
OpenPOWER on IntegriCloud