Fast DDS  Version 3.6.1.0
Fast DDS
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 
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 
33 {
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.
39 
40 
41 } // namespace rtps
42 } // namespace fastdds
43 } // namespace eprosima
44 
45 #endif // FASTDDS_RTPS_ATTRIBUTES__RESOURCEMANAGEMENT_HPP
enum eprosima::fastdds::rtps::MemoryManagementPolicy MemoryManagementPolicy_t
Enum MemoryuManagementPolicy_t, indicated the way memory is managed in terms of dealing with CacheCha...
MemoryManagementPolicy
Enum MemoryuManagementPolicy_t, indicated the way memory is managed in terms of dealing with CacheCha...
Definition: ResourceManagement.hpp:33
@ DYNAMIC_RESERVE_MEMORY_MODE
Definition: ResourceManagement.hpp:36
@ PREALLOCATED_WITH_REALLOC_MEMORY_MODE
Default size preallocated, requires reallocation when a bigger message arrives.
Definition: ResourceManagement.hpp:35
@ DYNAMIC_REUSABLE_MEMORY_MODE
Definition: ResourceManagement.hpp:37
@ PREALLOCATED_MEMORY_MODE
Preallocated memory.
Definition: ResourceManagement.hpp:34