#include <DirectPriorityMapper.h>
Inheritance diagram for OpenDDS::DCPS::DirectPriorityMapper:


Public Member Functions | |
| DirectPriorityMapper (CORBA::Long priority=0) | |
| Construct with a priority value. | |
| virtual | ~DirectPriorityMapper () |
| Virtual destructor. | |
| virtual short | codepoint () const |
| Access the mapped DiffServ codepoint value. | |
| virtual short | thread_priority () const |
| Access the mapped thread priority value. | |
This implementation maps TRANSPORT_PRIORITY values directly to both DiffServ codepoint and thread priority values. The behavior is saturating - that is when the TRANSPORT_PRIORITY value is out of the target range, it is mapped to the nearest extremum.
DiffServ codepoint values are mapped within the closed interval [0,63], with the corresponding TRANSPORT_PRIORITY values mapped directly within this range.
Thread priorities are mapped to the system thread scheduler minimum value (obtained from the sched_get_priority_min(sched) system call, where available) up to the maximum value (obtained from the sched_get_priority_max(sched) system call, where available). The TRANSPORT_PRIORITY value of 0 is mapped to the minimum and a value of |max-min| is mapped to the maximum.
| ACE_INLINE OpenDDS::DCPS::DirectPriorityMapper::DirectPriorityMapper | ( | CORBA::Long | priority = 0 |
) |
Construct with a priority value.
| OpenDDS::DCPS::DirectPriorityMapper::~DirectPriorityMapper | ( | ) | [virtual] |
Virtual destructor.
| short OpenDDS::DCPS::DirectPriorityMapper::codepoint | ( | ) | const [virtual] |
| short OpenDDS::DCPS::DirectPriorityMapper::thread_priority | ( | ) | const [virtual] |
1.4.7