summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorArne H Juul <arnej@yahooinc.com>2021-10-21 06:30:04 +0000
committerArne H Juul <arnej@yahooinc.com>2021-10-21 06:30:04 +0000
commitc32dbc49fc180281abc095a3f127596cf857a7b0 (patch)
tree8a7ff5fe7125d52ab874abc31889f64e3d95ad81 /searchcore
parent1c9e681e3ebaa6e814c039814dfe4fb314e34de6 (diff)
use atomic for configurable flag
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/matchengine/matchengine.h2
-rw-r--r--searchcore/src/vespa/searchcore/proton/summaryengine/summaryengine.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/matchengine/matchengine.h b/searchcore/src/vespa/searchcore/proton/matchengine/matchengine.h
index bf3ec8c06ba..b4e32c45003 100644
--- a/searchcore/src/vespa/searchcore/proton/matchengine/matchengine.h
+++ b/searchcore/src/vespa/searchcore/proton/matchengine/matchengine.h
@@ -21,7 +21,7 @@ private:
const uint32_t _distributionKey;
bool _async;
bool _closed;
- bool _forward_issues;
+ std::atomic<bool> _forward_issues;
HandlerMap<ISearchHandler> _handlers;
vespalib::ThreadStackExecutor _executor;
vespalib::SimpleThreadBundle::Pool _threadBundlePool;
diff --git a/searchcore/src/vespa/searchcore/proton/summaryengine/summaryengine.h b/searchcore/src/vespa/searchcore/proton/summaryengine/summaryengine.h
index c181b86b845..7f6d9328491 100644
--- a/searchcore/src/vespa/searchcore/proton/summaryengine/summaryengine.h
+++ b/searchcore/src/vespa/searchcore/proton/summaryengine/summaryengine.h
@@ -34,7 +34,7 @@ private:
std::mutex _lock;
bool _async;
bool _closed;
- bool _forward_issues;
+ std::atomic<bool> _forward_issues;
HandlerMap<ISearchHandler> _handlers;
vespalib::ThreadStackExecutor _executor;
std::unique_ptr<metrics::MetricSet> _metrics;