diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/src/vespa/config/helper/configfetcher.cpp | 4 | ||||
-rw-r--r-- | config/src/vespa/config/retriever/simpleconfigurer.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/config/src/vespa/config/helper/configfetcher.cpp b/config/src/vespa/config/helper/configfetcher.cpp index b2cf6e1955d..ec4ea42d0bb 100644 --- a/config/src/vespa/config/helper/configfetcher.cpp +++ b/config/src/vespa/config/helper/configfetcher.cpp @@ -15,7 +15,7 @@ VESPA_THREAD_STACK_TAG(config_fetcher_thread); ConfigFetcher::ConfigFetcher(std::shared_ptr<IConfigContext> context) : _poller(std::make_unique<ConfigPoller>(std::move(context))), - _thread(std::make_unique<vespalib::Thread>(*_poller, config_fetcher_thread)), + _thread(std::make_unique<vespalib::Thread>()), _closed(false), _started(false) { @@ -36,7 +36,7 @@ ConfigFetcher::start() throw ConfigTimeoutException("ConfigFetcher::start timed out getting initial config"); } LOG(debug, "Starting fetcher thread..."); - _thread->start(); + *_thread = vespalib::Thread::start(*_poller, config_fetcher_thread); _started = true; LOG(debug, "Fetcher thread started"); } diff --git a/config/src/vespa/config/retriever/simpleconfigurer.cpp b/config/src/vespa/config/retriever/simpleconfigurer.cpp index 5059b9997f5..1e89f51ec03 100644 --- a/config/src/vespa/config/retriever/simpleconfigurer.cpp +++ b/config/src/vespa/config/retriever/simpleconfigurer.cpp @@ -13,7 +13,7 @@ VESPA_THREAD_STACK_TAG(simple_configurer_thread); SimpleConfigurer::SimpleConfigurer(SimpleConfigRetriever::UP retriever, SimpleConfigurable * const configurable) : _retriever(std::move(retriever)), _configurable(configurable), - _thread(*this, simple_configurer_thread), + _thread(), _started(false) { assert(_retriever); @@ -25,7 +25,7 @@ SimpleConfigurer::start() if (!_retriever->isClosed()) { LOG(debug, "Polling for config"); runConfigure(); - _thread.start(); + _thread = vespalib::Thread::start(*this, simple_configurer_thread); _started = true; } } |