-
-
Notifications
You must be signed in to change notification settings - Fork 557
Expand file tree
/
Copy pathcomponent_module.cpp
More file actions
36 lines (29 loc) · 1.52 KB
/
Copy pathcomponent_module.cpp
File metadata and controls
36 lines (29 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (c) 2015-2024 Hartmut Kaiser
//
// SPDX-License-Identifier: BSL-1.0
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <hpx/config.hpp>
#include <hpx/modules/actions.hpp>
#include <hpx/async_distributed/transfer_continuation_action.hpp>
#include <hpx/modules/actions_base.hpp>
#include <hpx/modules/components_base.hpp>
#include <hpx/runtime_components/component_factory.hpp>
#include <hpx/components/component_storage/server/migrate_to_storage.hpp>
#include <hpx/config/warnings_prefix.hpp>
///////////////////////////////////////////////////////////////////////////////
// Add factory registration functionality.
HPX_REGISTER_COMPONENT_MODULE()
using component_storage_type = hpx::components::server::component_storage;
HPX_REGISTER_COMPONENT(hpx::components::component<component_storage_type>,
component_storage_factory, hpx::components::factory_state::enabled)
HPX_DEFINE_GET_COMPONENT_TYPE(component_storage_type)
///////////////////////////////////////////////////////////////////////////////
HPX_REGISTER_ACTION(
hpx::components::server::component_storage::migrate_to_here_action,
component_storage_migrate_component_to_here_action)
HPX_REGISTER_ACTION(
hpx::components::server::component_storage::migrate_from_here_action,
component_storage_migrate_component_from_here_action)
HPX_REGISTER_ACTION(hpx::components::server::component_storage::size_action,
component_storage_size_action)