diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-03-26 21:46:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-26 21:46:34 +0100 |
commit | 8f0f88ff1b16d13371984c30ffc79d1887788113 (patch) | |
tree | 66caadf8364c121236dcc63ee87cfaf141b34d10 /vespalib | |
parent | fa9c389e779851c563ccef77a2a37a7277c24e1c (diff) | |
parent | 36b3be76ae151682295faa04de17989f3600c29b (diff) |
Merge pull request #12727 from vespa-engine/balder/let-optimize-flag-control-index-and-summary-executor-too
Add shutdown to thread interface.
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/vespa/vespalib/util/threadexecutor.h | 1 | ||||
-rw-r--r-- | vespalib/src/vespa/vespalib/util/threadstackexecutorbase.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/vespalib/src/vespa/vespalib/util/threadexecutor.h b/vespalib/src/vespa/vespalib/util/threadexecutor.h index 202e516bc60..61a5d9d5ac7 100644 --- a/vespalib/src/vespa/vespalib/util/threadexecutor.h +++ b/vespalib/src/vespa/vespalib/util/threadexecutor.h @@ -40,6 +40,7 @@ public: class SyncableThreadExecutor : public ThreadExecutor, public Syncable { public: + virtual SyncableThreadExecutor & shutdown() = 0; }; } // namespace vespalib diff --git a/vespalib/src/vespa/vespalib/util/threadstackexecutorbase.h b/vespalib/src/vespa/vespalib/util/threadstackexecutorbase.h index 2c0bc56d6df..6333a8fc66e 100644 --- a/vespalib/src/vespa/vespalib/util/threadstackexecutorbase.h +++ b/vespalib/src/vespa/vespalib/util/threadstackexecutorbase.h @@ -226,7 +226,7 @@ public: * * @return this object; for chaining **/ - ThreadStackExecutorBase &shutdown(); + ThreadStackExecutorBase &shutdown() override; /** * Will invoke shutdown then sync. |