Fast DDS  Version 3.0.1
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
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
27namespace eprosima {
28namespace fastdds {
29namespace rtps {
30
36struct 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 namespace.
Struct ThreadSettings to specify various thread settings.
Definition ThreadSettings.hpp:37