9 #ifndef YARP_OS_QOSSTYLE_H
10 #define YARP_OS_QOSSTYLE_H
34 PacketPriorityInvalid = -1,
35 PacketPriorityNormal = 0,
36 PacketPriorityLow = 10,
37 PacketPriorityHigh = 36,
38 PacketPriorityCritical = 44,
39 PacketPriorityUndefined = 0x7FFF
72 DSCP_Undefined = 0x7FFF
86 void setPacketPriorityByDscp(PacketPriorityDSCP dscp);
93 void setPacketPriorityByLevel(PacketPriorityLevel level);
102 packetPriority = tos;
123 bool setPacketPriority(
const std::string& priority);
132 threadPriority = priority;
142 threadPolicy = policy;
152 return packetPriority;
160 PacketPriorityDSCP getPacketPriorityAsDSCP()
const;
167 PacketPriorityLevel getPacketPriorityAsLevel()
const;
176 return threadPriority;
195 static PacketPriorityDSCP getDSCPByVocab(
int vocab);
203 static PacketPriorityLevel getLevelByVocab(
int vocab);
215 #endif // YARP_OS_QOSSTYLE_H