Fast DDS  Version 3.6.1.0
Fast DDS
ThreadSettings.hpp
1 // Copyright 2023 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 #include <cstdint>
20 #include <limits>
21 
22 #include <fastdds/fastdds_dll.hpp>
23 
24 #ifndef FASTDDS_RTPS_ATTRIBUTES_THREADSETTINGS_HPP
25 #define FASTDDS_RTPS_ATTRIBUTES_THREADSETTINGS_HPP
26 
27 namespace eprosima {
28 namespace fastdds {
29 namespace rtps {
30 
36 struct FASTDDS_EXPORTED_API ThreadSettings
37 {
49  int32_t scheduling_policy = -1;
50 
61  int32_t priority = std::numeric_limits<int32_t>::min();
62 
75  uint64_t affinity = 0;
76 
87  int32_t stack_size = -1;
88 
95  const ThreadSettings& rhs) const;
96 
103  const ThreadSettings& rhs) const;
104 
105 };
106 
107 } // namespace rtps
108 } // namespace fastdds
109 } // namespace eprosima
110 
111 #endif // FASTDDS_RTPS_ATTRIBUTES_THREADSETTINGS_HPP
bool operator!=(const EntityId_t &id1, const EntityId_t &id2)
Guid prefix comparison operator.
Definition: EntityId_t.hpp:267
bool operator==(const BuiltinTransportsOptions &bto1, const BuiltinTransportsOptions &bto2)
Equal to operator.
Definition: BuiltinTransports.hpp:79
Struct ThreadSettings to specify various thread settings.
Definition: ThreadSettings.hpp:37