blob: b8b2a57ff9b36b31ce1095d6715dd38f704421be (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright Yahoo. 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
|