aboutsummaryrefslogtreecommitdiffstats
path: root/config/src/vespa/config/frt/frtsource.h
diff options
context:
space:
mode:
authorbjormel <bjormel@yahooinc.com>2023-10-26 13:59:28 +0000
committerbjormel <bjormel@yahooinc.com>2023-10-26 13:59:28 +0000
commit567be9a1f6353cec41c23bfd1fcd46b4b2a4d2d7 (patch)
tree4664a743e166a5e11aee7b9acd70ad8ee2617612 /config/src/vespa/config/frt/frtsource.h
parente9058b555d4dfea2f6c872d9a677e8678b569569 (diff)
parentbce3b8e926bf9da880172acbe1ba4b12d5e026d6 (diff)
Merge branch 'master' into bjormel/aws-main-controllerbjormel/aws-main-controller
Diffstat (limited to 'config/src/vespa/config/frt/frtsource.h')
-rw-r--r--config/src/vespa/config/frt/frtsource.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/src/vespa/config/frt/frtsource.h b/config/src/vespa/config/frt/frtsource.h
index ceb0484a6bb..92aa6a7370d 100644
--- a/config/src/vespa/config/frt/frtsource.h
+++ b/config/src/vespa/config/frt/frtsource.h
@@ -1,4 +1,4 @@
-// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/config/common/configkey.h>
@@ -37,11 +37,11 @@ private:
const FRTConfigRequestFactory & _requestFactory;
std::unique_ptr<ConfigAgent> _agent;
const ConfigKey _key;
- std::mutex _lock; // Protects _inflight, _task and _closed
+ std::mutex _lock; // Protects _inflight, _task and _state
std::condition_variable _cond;
RequestMap _inflight;
std::unique_ptr<FNET_Task> _task;
- bool _closed;
+ enum class State : uint8_t { OPEN, CLOSING, CLOSED } _state;
};
} // namespace config