diff options
| author | William A. Kennington III <wak@google.com> | 2019-06-27 14:41:36 -0700 |
|---|---|---|
| committer | William A. Kennington III <wak@google.com> | 2019-06-27 14:41:43 -0700 |
| commit | b315a2ab41ab6408a2185162fdd56c836249abdc (patch) | |
| tree | c38a9c905ca4b42c834843e7f03943cb3856da3f /example | |
| parent | e19c3cf6493d068d600db959de44a00a8097bbf5 (diff) | |
| download | sdeventplus-master.tar.gz sdeventplus-master.zip | |
Change-Id: I327de53cbed42d46b88f40f0b15637fda6896f8b
Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'example')
| -rw-r--r-- | example/heartbeat_timer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/example/heartbeat_timer.cpp b/example/heartbeat_timer.cpp index 63c33c0..f71af3c 100644 --- a/example/heartbeat_timer.cpp +++ b/example/heartbeat_timer.cpp @@ -39,8 +39,9 @@ int main(int argc, char* argv[]) fprintf(stderr, "Beating every %u seconds\n", interval); auto event = Event::get_default(); - Timer timer(event, [](Timer&) { printf("Beat\n"); }, - std::chrono::seconds{interval}); + Timer timer( + event, [](Timer&) { printf("Beat\n"); }, + std::chrono::seconds{interval}); stdplus::signal::block(SIGINT); Signal signal(event, SIGINT, intCb); return event.loop(); |

