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

STEllAR-GROUP / hpx / #852

17 Dec 2022 04:43PM UTC coverage: 85.912% (-0.7%) from 86.568%
#852

push

StellarBot
Merge #6106

6106: Modernizing modules of levels 0 to 5 r=hkaiser a=hkaiser

- flyby: HPX_FORWARD/HPX_MOVE now expand to std::forward and std::move if those are implemented as builtin functions

working towards #5497

Co-authored-by: Hartmut Kaiser <hartmut.kaiser@gmail.com>

87 of 87 new or added lines in 24 files covered. (100.0%)

173152 of 201546 relevant lines covered (85.91%)

1910264.28 hits per line

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

0.0
/libs/core/debugging/src/attach_debugger.cpp
1
//  Copyright (c) 2007-2012 Hartmut Kaiser
2
//  Copyright (c) 2017      Denis Blank
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/debugging/attach_debugger.hpp>
10

11
#include <iostream>
12

13
#if defined(HPX_HAVE_UNISTD_H)
14
#include <unistd.h>
15
#endif
16

17
#if defined(HPX_WINDOWS)
18
#include <Windows.h>
19
#endif
20

21
#if defined(_POSIX_VERSION)
22
#include <asio/ip/host_name.hpp>
23
#endif
24

25
namespace hpx::util {
26

27
    void attach_debugger()
×
28
    {
29
#if defined(_POSIX_VERSION) && defined(HPX_HAVE_UNISTD_H)
30
        volatile int i = 0;
×
31
        std::cerr << "PID: " << getpid() << " on " << asio::ip::host_name()
×
32
                  << " ready for attaching debugger. Once attached set i = 1 "
×
33
                     "and continue"
34
                  << std::endl;
×
35
        while (i == 0)
×
36
        {
37
            sleep(1);
×
38
        }
39
#elif defined(HPX_WINDOWS)
40
        DebugBreak();
41
#endif
42
    }
×
43
}    // namespace hpx::util
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