| Fast DDS Version 3.3.0 Fast DDS

Loading...
Searching...
No Matches
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
18
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
94 bool operator ==(
95 const ThreadSettings& rhs) const;
96
102 bool operator !=(
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
eprosima::fastdds::rtps
Contains the RTPS protocol implementation.
eprosima::fastdds
eprosima
eProsima namespace.
eprosima::fastdds::rtps::ThreadSettings
Struct ThreadSettings to specify various thread settings.
Definition ThreadSettings.hpp:37
eprosima::fastdds::rtps::ThreadSettings::priority
int32_t priority
The thread's priority.
Definition ThreadSettings.hpp:61
eprosima::fastdds::rtps::ThreadSettings::affinity
uint64_t affinity
The thread's affinity.
Definition ThreadSettings.hpp:75
eprosima::fastdds::rtps::ThreadSettings::stack_size
int32_t stack_size
The thread's stack size in bytes.
Definition ThreadSettings.hpp:87
eprosima::fastdds::rtps::ThreadSettings::scheduling_policy
int32_t scheduling_policy
The scheduling policy used for this thread.
Definition ThreadSettings.hpp:49