• 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/algorithms/src/handle_exception_termination_handler.cpp
1
//  Copyright (c) 2020      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
#include <hpx/parallel/util/detail/handle_exception_termination_handler.hpp>
9

10
#include <exception>
11

12
namespace hpx::parallel::util::detail {
13

14
    parallel_exception_termination_handler_type&
15
    get_parallel_exception_termination_handler()
32✔
16
    {
17
        static parallel_exception_termination_handler_type f;
32✔
18
        return f;
32✔
19
    }
20

21
    void set_parallel_exception_termination_handler(
32✔
22
        parallel_exception_termination_handler_type f)
23
    {
24
        get_parallel_exception_termination_handler() = HPX_MOVE(f);
32✔
25
    }
32✔
26

27
    [[noreturn]] void parallel_exception_termination_handler()
×
28
    {
29
        if (get_parallel_exception_termination_handler())
×
30
        {
31
            get_parallel_exception_termination_handler()();
×
32
        }
33

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