diff options
Diffstat (limited to 'searchcore/src/vespa/searchcore/proton/flushengine/priority_flush_token.cpp')
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/flushengine/priority_flush_token.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/flushengine/priority_flush_token.cpp b/searchcore/src/vespa/searchcore/proton/flushengine/priority_flush_token.cpp new file mode 100644 index 00000000000..f031c19d1d8 --- /dev/null +++ b/searchcore/src/vespa/searchcore/proton/flushengine/priority_flush_token.cpp @@ -0,0 +1,17 @@ +// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. + +#include "priority_flush_token.h" + +namespace proton { + +PriorityFlushToken::PriorityFlushToken(std::promise<void> promise) + : _promise(std::move(promise)) +{ +} + +PriorityFlushToken::~PriorityFlushToken() +{ + _promise.set_value(); +} + +} |