summaryrefslogtreecommitdiffstats
path: root/staging_vespalib/src/vespa/vespalib/util/timer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'staging_vespalib/src/vespa/vespalib/util/timer.cpp')
-rw-r--r--staging_vespalib/src/vespa/vespalib/util/timer.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/staging_vespalib/src/vespa/vespalib/util/timer.cpp b/staging_vespalib/src/vespa/vespalib/util/timer.cpp
index 4a719e69665..4e2fc3d54c6 100644
--- a/staging_vespalib/src/vespa/vespalib/util/timer.cpp
+++ b/staging_vespalib/src/vespa/vespalib/util/timer.cpp
@@ -1,6 +1,8 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "timer.h"
-#include <vespa/fnet/fnet.h>
+#include <vespa/fnet/scheduler.h>
+#include <vespa/fnet/task.h>
+#include <vespa/fnet/transport.h>
namespace vespalib {
@@ -22,13 +24,11 @@ public:
_interval(interval)
{ }
- ~TimerTask(void)
- {
+ ~TimerTask() {
Kill();
}
- void PerformTask()
- {
+ void PerformTask() override {
_task->run();
Schedule(_interval);
}