Public Member Functions | Private Attributes | List of all members
TAO_Multi_Priority_Mapping Class Reference

An implementation of the Priority_Mapping interface for communication between different platforms. More...

#include <Multi_Priority_Mapping.h>

Inheritance diagram for TAO_Multi_Priority_Mapping:
Inheritance graph
Collaboration diagram for TAO_Multi_Priority_Mapping:
Collaboration graph

Public Member Functions

 TAO_Multi_Priority_Mapping (int base_native_priority, int base_corba_priority, int priority_spacing=1, int priorities_contiguous=1, int policy=ACE_SCHED_FIFO)
 Default constructor. More...
virtual ~TAO_Multi_Priority_Mapping (void)
 The destructor. More...
virtual CORBA::Boolean to_native (RTCORBA::Priority corba_priority, RTCORBA::NativePriority &native_priority)
virtual CORBA::Boolean to_CORBA (RTCORBA::NativePriority native_priority, RTCORBA::Priority &corba_priority)
- Public Member Functions inherited from TAO_Priority_Mapping
virtual ~TAO_Priority_Mapping (void)
 The destructor. More...

Private Attributes

int base_native_priority_
 The base settings. More...
int base_corba_priority_
const int priority_spacing_
const int priorities_contiguous_
int policy_
 The scheduling policy. More...
int const min_
 The range. More...
int const max_

Detailed Description

An implementation of the Priority_Mapping interface for communication between different platforms.

This implementation uses a custom mapping between the range of priorities for a given scheduling class (ACE_SCHED_OTHER, ACE_SCHED_FIFO, ACE_SCHED_RR) and the valid range of CORBA priorities (0...32767)

Constructor & Destructor Documentation

TAO_Multi_Priority_Mapping::TAO_Multi_Priority_Mapping ( int  base_native_priority,
int  base_corba_priority,
int  priority_spacing = 1,
int  priorities_contiguous = 1,
int  policy = ACE_SCHED_FIFO 

Default constructor.

base_native_priorityThe native priority to use for the highest priority endpoint.
base_corba_priorityThe corba priority to use for the highest priority endpoint
priority_spacingThe priority increment to use between endpoints
priorities_contiguousSome platforms do use contiguous priorities
policyThe scheduling policy to use.
TAO_Multi_Priority_Mapping::~TAO_Multi_Priority_Mapping ( void  )

The destructor.

Member Function Documentation

CORBA::Boolean TAO_Multi_Priority_Mapping::to_CORBA ( RTCORBA::NativePriority  native_priority,
RTCORBA::Priority corba_priority 

Implements TAO_Priority_Mapping.

CORBA::Boolean TAO_Multi_Priority_Mapping::to_native ( RTCORBA::Priority  corba_priority,
RTCORBA::NativePriority native_priority 

Implements TAO_Priority_Mapping.

Member Data Documentation

int TAO_Multi_Priority_Mapping::base_corba_priority_
int TAO_Multi_Priority_Mapping::base_native_priority_

The base settings.

int const TAO_Multi_Priority_Mapping::max_
int const TAO_Multi_Priority_Mapping::min_

The range.

int TAO_Multi_Priority_Mapping::policy_

The scheduling policy.

const int TAO_Multi_Priority_Mapping::priorities_contiguous_
const int TAO_Multi_Priority_Mapping::priority_spacing_

The documentation for this class was generated from the following files: