diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-02-02 05:31:48 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2021-02-02 05:31:48 +0000 |
commit | cad7af3ec2d6fd8e1d70c3575088d0edab4bbe41 (patch) | |
tree | f3e3d1928dc7fc7de69278f0b90b5f8f8b2695a4 /vespalib | |
parent | 82decc80ef372dfdcde493c5d84b4a11ff0655bf (diff) |
Properly track execution of BucketTasks and provide sync() and orderly shutdown.
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/vespa/vespalib/util/executor.h | 4 |
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 |