OpenDDS::DCPS::DirectPriorityMapper Class Reference

map TRANSPORT_PRIORITY values directly. More...

#include <DirectPriorityMapper.h>

Inheritance diagram for OpenDDS::DCPS::DirectPriorityMapper:

Inheritance graph
[legend]
Collaboration diagram for OpenDDS::DCPS::DirectPriorityMapper:

Collaboration graph
[legend]
List of all members.

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.

Detailed Description

map TRANSPORT_PRIORITY values directly.

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.


Constructor & Destructor Documentation

ACE_INLINE OpenDDS::DCPS::DirectPriorityMapper::DirectPriorityMapper ( CORBA::Long  priority = 0  ) 

Construct with a priority value.

OpenDDS::DCPS::DirectPriorityMapper::~DirectPriorityMapper (  )  [virtual]

Virtual destructor.


Member Function Documentation

short OpenDDS::DCPS::DirectPriorityMapper::codepoint (  )  const [virtual]

Access the mapped DiffServ codepoint value.

Implements OpenDDS::DCPS::PriorityMapper.

short OpenDDS::DCPS::DirectPriorityMapper::thread_priority (  )  const [virtual]

Access the mapped thread priority value.

Implements OpenDDS::DCPS::PriorityMapper.


The documentation for this class was generated from the following files:
Generated on Wed Nov 16 15:29:00 2011 for OpenDDS by  doxygen 1.4.7