commit | ba04ffb5a94fd47d8acc57c7a6be4d31624d2c23 | [log] [tgz] |
---|---|---|
author | William A. Kennington III <wak@google.com> | Thu Sep 20 11:35:11 2018 -0700 |
committer | William A. Kennington III <wak@google.com> | Wed Sep 26 12:18:50 2018 -0700 |
tree | aa8629e7418795879a563ff9dc6909985b79899e | |
parent | fa9431d52f37bf51a2aa0d3a85eaaf027db8488f [diff] |
utility/timer: Implement oneshot timers This change is meant to enable users of the old openbmc timer class to trivially use the timer if they only want single executions. It also makes setting up the timer less verbose if you do not already know the timeout interval. Tested: Run through unit tests and did a sample integration with phosphor-watchdog and phosphor-networkd. Verified that the new oneshot example works as expected. Change-Id: I2cd006d1f19fff99bce3f732a16eac9ca9553666 Signed-off-by: William A. Kennington III <wak@google.com>
sdeventplus is a c++ wrapper around the systemd sd_event apis meant to provide c++ ergonomics to their usage.
The sdeventplus library requires libsystemd for sd-event.
Test cases require google{test,mock}, valgrind, and lcov.
For a standard release build, you want something like:
./bootstrap.sh ./configure --disable-tests make make install
For a test / debug build, a typical configuration is
./bootstrap.sh ./configure --enable-tests --enable-coverage --enable-valgrind make make check make check-valgrind make check-code-coverage