aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/attribute/initialized_attributes_result.cpp
blob: f5ffee317ab4e8f02e6601949ae859f0b2824b7a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "initialized_attributes_result.h"

using search::AttributeVector;

namespace proton {

InitializedAttributesResult::InitializedAttributesResult()
    : _attributes(),
      _lock()
{}

void
InitializedAttributesResult::add(AttributeInitializerResult attribute)
{
    std::lock_guard<std::mutex> lockGuard(_lock);
    _attributes.push_back(attribute);
}

} // namespace proton