• 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/full/async_colocated/src/get_colocation_id.cpp
1
//  Copyright (c) 2007-2024 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/assert.hpp>
9
#include <hpx/async_colocated/get_colocation_id.hpp>
10
#include <hpx/components_base/agas_interface.hpp>
11
#include <hpx/modules/async_base.hpp>
12
#include <hpx/modules/errors.hpp>
13
#include <hpx/modules/futures.hpp>
14
#include <hpx/naming_base/id_type.hpp>
15

16
namespace hpx {
17

18
    hpx::id_type get_colocation_id(
×
19
        launch::sync_policy, hpx::id_type const& id, error_code& ec)
20
    {
21
        return agas::get_colocation_id(launch::sync, id, ec);
×
22
    }
23

24
    hpx::future<id_type> get_colocation_id(hpx::id_type const& id)
×
25
    {
26
        auto result = agas::get_colocation_id(id);
×
27
        if (result.has_value())
×
28
        {
29
            return hpx::make_ready_future(HPX_MOVE(result).get_value());
30
        }
31

32
        auto f = HPX_MOVE(result).get_future();
33
        return f;
34
    }
35
}    // namespace hpx
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