Coverage Report

Created: 2025-08-29 06:16

/src/immer/immer/lock/no_lock_policy.hpp
Line
Count
Source (jump to first uncovered line)
1
//
2
// immer: immutable data structures for C++
3
// Copyright (C) 2016, 2017, 2018 Juan Pedro Bolivar Puente
4
//
5
// This software is distributed under the Boost Software License, Version 1.0.
6
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
7
//
8
9
#pragma once
10
11
namespace immer {
12
13
struct no_lock_policy
14
{
15
0
    bool try_lock() { return true; }
16
0
    void lock() {}
17
0
    void unlock() {}
18
19
    struct scoped_lock
20
    {
21
0
        scoped_lock(no_lock_policy&) {}
22
    };
23
};
24
25
} // namespace immer