• 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/executors/src/current_executor.cpp
1
//  Copyright (c) 2007-2023 Hartmut Kaiser
2
//  Copyright (c)      2011 Bryce Lelbach
3
//
4
//  SPDX-License-Identifier: BSL-1.0
5
//  Distributed under the Boost Software License, Version 1.0. (See accompanying
6
//  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7

8
#include <hpx/config.hpp>
9
#include <hpx/executors/current_executor.hpp>
10
#include <hpx/modules/errors.hpp>
11

12
namespace hpx::threads {
13

14
    hpx::execution::parallel_executor get_executor(
×
15
        thread_id_type const& id, error_code& ec)
16
    {
17
        if (HPX_UNLIKELY(!id))
×
18
        {
19
            HPX_THROWS_IF(ec, hpx::error::null_thread_id,
×
20
                "hpx::threads::get_executor", "null thread id encountered");
21
            return hpx::execution::parallel_executor();
×
22
        }
23

24
        if (&ec != &throws)
×
25
            ec = make_success_code();
×
26

27
        return hpx::execution::parallel_executor(
28
            get_thread_id_data(id)->get_scheduler_base()->get_parent_pool());
29
    }
30
}    // namespace hpx::threads
31

32
namespace hpx::this_thread {
33

34
    hpx::execution::parallel_executor get_executor(error_code& ec)
×
35
    {
36
        return threads::get_executor(threads::get_self_id(), ec);
×
37
    }
38
}    // namespace hpx::this_thread
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