summaryrefslogtreecommitdiffstats
path: root/staging_vespalib/src/vespa/vespalib/net/simple_component_config_producer.h
diff options
context:
space:
mode:
Diffstat (limited to 'staging_vespalib/src/vespa/vespalib/net/simple_component_config_producer.h')
-rw-r--r--staging_vespalib/src/vespa/vespalib/net/simple_component_config_producer.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/staging_vespalib/src/vespa/vespalib/net/simple_component_config_producer.h b/staging_vespalib/src/vespa/vespalib/net/simple_component_config_producer.h
index 5783139c9d5..70dd00a8792 100644
--- a/staging_vespalib/src/vespa/vespalib/net/simple_component_config_producer.h
+++ b/staging_vespalib/src/vespa/vespalib/net/simple_component_config_producer.h
@@ -3,19 +3,20 @@
#pragma once
#include "component_config_producer.h"
-#include <vespa/vespalib/util/sync.h>
#include <map>
+#include <mutex>
namespace vespalib {
class SimpleComponentConfigProducer : public ComponentConfigProducer
{
private:
- Lock _lock;
+ std::mutex _lock;
std::map<vespalib::string, Config> _state;
public:
SimpleComponentConfigProducer();
+ ~SimpleComponentConfigProducer() override;
void addConfig(const Config &config);
void removeConfig(const vespalib::string &name);
void getComponentConfig(Consumer &consumer) override;