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

STEllAR-GROUP / hpx / #862

10 Jan 2023 05:30PM UTC coverage: 86.582% (-0.05%) from 86.634%
#862

push

StellarBot
Merge #6130

6130: Remove the mutex lock in the critical path of get_partitioner. r=hkaiser a=JiakunYan

Remove the mutex lock in the critical path of hpx::resource::detail::get_partitioner.

The protected variable `partitioner_ref` is only set once during initialization.

Co-authored-by: Jiakun Yan <jiakunyan1998@gmail.com>

6 of 6 new or added lines in 1 file covered. (100.0%)

174767 of 201851 relevant lines covered (86.58%)

2069816.07 hits per line

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

84.62
/libs/core/executors/src/fork_join_executor.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/executors/fork_join_executor.hpp>
8

9
#include <ostream>
10

11
namespace hpx::execution::experimental {
12

13
    std::ostream& operator<<(
12✔
14
        std::ostream& os, fork_join_executor::loop_schedule schedule)
15
    {
16
        switch (schedule)
12✔
17
        {
18
        case fork_join_executor::loop_schedule::static_:
19
            os << "static";
6✔
20
            break;
6✔
21
        case fork_join_executor::loop_schedule::dynamic:
22
            os << "dynamic";
6✔
23
            break;
6✔
24
        default:
25
            os << "<unknown>";
×
26
            break;
×
27
        }
28

29
        os << " ("
12✔
30
           << static_cast<
12✔
31
                  std::underlying_type_t<fork_join_executor::loop_schedule>>(
32
                  schedule)
12✔
33
           << ")";
12✔
34

35
        return os;
12✔
36
    }
37
}    // namespace hpx::execution::experimental
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