summaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-03-23 16:01:22 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-03-23 16:13:09 +0000
commit36b3be76ae151682295faa04de17989f3600c29b (patch)
treefbe5156d396bfa694f9acd932b466088c20d2e63 /vespalib
parent23dcf1db150a66ec66cf746d4234982fdbb0e6e2 (diff)
Add shutdown to thread interface.
Let the optimize config control index and summary executor too.
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/util/threadexecutor.h1
-rw-r--r--vespalib/src/vespa/vespalib/util/threadstackexecutorbase.h2
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.