• 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

60.0
/libs/core/executors/src/exception_list_callbacks.cpp
1
//  Copyright (c) 2020      ETH Zurich
2
//                2007-2017 Hartmut Kaiser
3
//                2017-2018 Taeguk Kwon
4
//
5
//  SPDX-License-Identifier: BSL-1.0
6
//  Distributed under the Boost Software License, Version 1.0. (See accompanying
7
//  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8

9
#include <hpx/config.hpp>
10
#include <hpx/executors/exception_list.hpp>
11

12
#include <exception>
13

14
namespace hpx::parallel::detail {
15
    exception_list_termination_handler_type&
16
    get_exception_list_termination_handler()
32✔
17
    {
18
        static exception_list_termination_handler_type f;
32✔
19
        return f;
32✔
20
    }
21

22
    void set_exception_list_termination_handler(
32✔
23
        exception_list_termination_handler_type f)
24
    {
25
        get_exception_list_termination_handler() = HPX_MOVE(f);
32✔
26
    }
32✔
27

28
    [[noreturn]] void exception_list_termination_handler()
×
29
    {
30
        if (get_exception_list_termination_handler())
×
31
        {
32
            get_exception_list_termination_handler()();
×
33
        }
34

35
        std::terminate();
×
36
    }
37
}    // namespace hpx::parallel::detail
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