| Fast DDS Version 3.3.0 Fast DDS

Loading...
Searching...
No Matches
ResourceManagement.hpp
1// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
19
20#ifndef FASTDDS_RTPS_ATTRIBUTES__RESOURCEMANAGEMENT_HPP
21#define FASTDDS_RTPS_ATTRIBUTES__RESOURCEMANAGEMENT_HPP
22
23
24 namespace eprosima {
25 namespace fastdds {
26 namespace rtps {
27
31
32 typedef enum MemoryManagementPolicy
33{
34 PREALLOCATED_MEMORY_MODE,
35 PREALLOCATED_WITH_REALLOC_MEMORY_MODE,
36 DYNAMIC_RESERVE_MEMORY_MODE, //< Dynamic allocation at the time of message arrival. Least memory footprint but highest allocation count.
37 DYNAMIC_REUSABLE_MEMORY_MODE //< Like DYNAMIC_RESERVE_MEMORY_MODE but allocated memory is reused for future messages. Smaller allocation count at the cost of an increased memory footprint.
38}MemoryManagementPolicy_t;
39
40
41} // namespace rtps
42} // namespace fastdds
43} // namespace eprosima
44
45#endif // FASTDDS_RTPS_ATTRIBUTES__RESOURCEMANAGEMENT_HPP
eprosima::fastdds::rtps
Contains the RTPS protocol implementation.
eprosima::fastdds::rtps::MemoryManagementPolicy_t
enum eprosima::fastdds::rtps::MemoryManagementPolicy MemoryManagementPolicy_t
Enum MemoryuManagementPolicy_t, indicated the way memory is managed in terms of dealing with CacheCha...
eprosima::fastdds::rtps::MemoryManagementPolicy
MemoryManagementPolicy
Enum MemoryuManagementPolicy_t, indicated the way memory is managed in terms of dealing with CacheCha...
Definition ResourceManagement.hpp:33
eprosima::fastdds::rtps::DYNAMIC_RESERVE_MEMORY_MODE
@ DYNAMIC_RESERVE_MEMORY_MODE
Definition ResourceManagement.hpp:36
eprosima::fastdds::rtps::PREALLOCATED_WITH_REALLOC_MEMORY_MODE
@ PREALLOCATED_WITH_REALLOC_MEMORY_MODE
Default size preallocated, requires reallocation when a bigger message arrives.
Definition ResourceManagement.hpp:35
eprosima::fastdds::rtps::DYNAMIC_REUSABLE_MEMORY_MODE
@ DYNAMIC_REUSABLE_MEMORY_MODE
Definition ResourceManagement.hpp:37
eprosima::fastdds::rtps::PREALLOCATED_MEMORY_MODE
@ PREALLOCATED_MEMORY_MODE
Preallocated memory.
Definition ResourceManagement.hpp:34
eprosima::fastdds
eprosima
eProsima namespace.