diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-05-30 14:21:12 -0400 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-06-19 16:26:48 -0400 |
commit | 3539db640767e6dafa652864fc5a5445db4ee697 (patch) | |
tree | d707f794e06cead05b7a0f3f4fca349718d374de /src/templates/generated.mako.hpp | |
parent | aabc54616fba1ad2c26acaf96ddf682ce3c263f0 (diff) | |
download | phosphor-dbus-monitor-3539db640767e6dafa652864fc5a5445db4ee697.tar.gz phosphor-dbus-monitor-3539db640767e6dafa652864fc5a5445db4ee697.zip |
Add deferrable callbacks
Deferrable callbacks delay callback invocation until a
pre configured length of time has elapsed. One example
scenario where deferrable callbacks help is to avoid
oscillation when testing a condition and making callbacks
frequently.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Change-Id: I180c99b57ec1c9bde4da76d947a026f809341c8a
Diffstat (limited to 'src/templates/generated.mako.hpp')
-rw-r--r-- | src/templates/generated.mako.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/templates/generated.mako.hpp b/src/templates/generated.mako.hpp index 914b065..51462b1 100644 --- a/src/templates/generated.mako.hpp +++ b/src/templates/generated.mako.hpp @@ -3,6 +3,7 @@ #pragma once #include <array> +#include <chrono> #include <string> #include "count.hpp" #include "data_types.hpp" @@ -13,6 +14,7 @@ #include "sdevent.hpp" using namespace std::string_literals; +using namespace std::chrono_literals; namespace phosphor { |