blob: 7b3535c8b8f75627a76328a873b49373a902dcb3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "ifeedview.h"
#include <vespa/vespalib/util/destructor_callbacks.h>
#include <vespa/vespalib/util/gate.h>
namespace proton {
void
IFeedView::forceCommitAndWait(CommitParam param) {
vespalib::Gate gate;
forceCommit(param, std::make_shared<vespalib::GateCallback>(gate));
gate.await();
}
}
|