aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/attribute/enummodifier.h
blob: c147ac5cd7548925a9ffa5fcc937dbe219d88fa6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <shared_mutex>
#include <mutex>

namespace search::attribute {

class InterlockGuard;

class EnumModifier
{
    std::unique_lock<std::shared_mutex> _enumLock;
public:
    EnumModifier(std::shared_mutex &lock, InterlockGuard &interlockGuard);
    ~EnumModifier();
};

}