summaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-02-02 12:01:31 +0100
committerGitHub <noreply@github.com>2021-02-02 12:01:31 +0100
commitd2b40aa63fb94282177771b0949a5a83e82bfb85 (patch)
tree32fd1c3126261cfd89c8519ec394b0d5784c15b6 /vespalib
parent292edf51fc53ae6dc78dd8182dde132b2a46f389 (diff)
parent74091edadda3317efd1b5e41f0c5fb06cf41018d (diff)
Merge pull request #16323 from vespa-engine/balder/implement-sync-of-bucket-executor
Properly track execution of BucketTasks and provide sync() and order…
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/util/executor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/vespalib/src/vespa/vespalib/util/executor.h b/vespalib/src/vespa/vespalib/util/executor.h
index 57ad28344b9..ce610f4e84c 100644
--- a/vespalib/src/vespa/vespalib/util/executor.h
+++ b/vespalib/src/vespa/vespalib/util/executor.h
@@ -20,7 +20,7 @@ public:
struct Task {
typedef std::unique_ptr<Task> UP;
virtual void run() = 0;
- virtual ~Task() {}
+ virtual ~Task() = default;
};
enum class OptimizeFor {LATENCY, THROUGHPUT, ADAPTIVE};
@@ -41,7 +41,7 @@ public:
* In case you have a lazy executor that naps inbetween.
**/
virtual void wakeup() = 0;
- virtual ~Executor() =default;
+ virtual ~Executor() = default;
};
} // namespace vespalib