• 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

40.0
/libs/core/lcos_local/src/preprocess_future.cpp
1
//  Copyright (c) 2019-2023 Hartmut Kaiser
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/lcos_local/detail/preprocess_future.hpp>
8
#include <hpx/modules/futures.hpp>
9
#include <hpx/modules/serialization.hpp>
10
#include <hpx/modules/type_support.hpp>
11

12
#include <cstdint>
13

14
namespace hpx::util {
15

16
    // This is explicitly instantiated to ensure that the id is stable across
17
    // shared libraries.
18
    extra_data_id_type
19
    extra_data_helper<serialization::detail::preprocess_futures>::id() noexcept
612✔
20
    {
21
        static std::uint8_t id = 0;
22
        return &id;
612✔
23
    }
24
}    // namespace hpx::util
25

26
namespace hpx::lcos::detail {
27

28
    void preprocess_future(serialization::output_archive& ar,
×
29
        hpx::lcos::detail::future_data_refcnt_base& state)
30
    {
31
        auto& handle_futures =
32
            ar.get_extra_data<serialization::detail::preprocess_futures>();
33

34
        handle_futures.await_future(state);
×
35
    }
×
36
}    // namespace hpx::lcos::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