• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

STEllAR-GROUP / hpx / #882

31 Aug 2023 07:44PM UTC coverage: 41.798% (-44.7%) from 86.546%
#882

push

19442 of 46514 relevant lines covered (41.8%)

126375.38 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/libs/core/threading_base/src/annotated_function.cpp
1
//  Copyright (c) 2021 ETH Zurich
2
//
3
//  SPDX-License-Identifier: BSL-1.0
4
//  Distributed under the Boost Software License, Version 1.0. (See accompanying
5
//  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6

7
#include <hpx/config.hpp>
8

9
#if defined(HPX_HAVE_THREAD_DESCRIPTION)
10
#include <hpx/threading_base/annotated_function.hpp>
11

12
#include <string>
13
#include <unordered_set>
14
#include <utility>
15

16
namespace hpx::detail {
17

18
    char const* store_function_annotation(std::string name)
19
    {
20
        static thread_local std::unordered_set<std::string> names;
21
        auto const r = names.emplace(HPX_MOVE(name));
22
        return (*std::get<0>(r)).c_str();
23
    }
24
}    // namespace hpx::detail
25

26
#else
27

28
#include <hpx/threading_base/thread_description.hpp>
29

30
#include <string>
31

32
namespace hpx::detail {
33

34
    char const* store_function_annotation(std::string)
×
35
    {
36
        return "<unknown>";
×
37
    }
38
}    // namespace hpx::detail
39

40
#endif
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc