summaryrefslogtreecommitdiff
path: root/TAO/tao/Linear_Priority_Mapping.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Linear_Priority_Mapping.h')
-rw-r--r--TAO/tao/Linear_Priority_Mapping.h74
1 files changed, 0 insertions, 74 deletions
diff --git a/TAO/tao/Linear_Priority_Mapping.h b/TAO/tao/Linear_Priority_Mapping.h
deleted file mode 100644
index 7984a5ec2d6..00000000000
--- a/TAO/tao/Linear_Priority_Mapping.h
+++ /dev/null
@@ -1,74 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO
-//
-// = FILENAME
-// Linear_Priority_Mapping.h
-//
-// = DESCRIPTION
-// Declares the Linear_Priority_Mapping interface, as defined in the
-// RT-CORBA spec.
-//
-// = AUTHOR
-// Carlos O'Ryan (coryan@cs.wustl.edu)
-//
-// ============================================================================
-
-#ifndef TAO_LINEAR_PRIORITY_MAPPING_H
-#define TAO_LINEAR_PRIORITY_MAPPING_H
-
-#include "tao/orbconf.h"
-
-#if defined (TAO_HAS_RT_CORBA)
-
-#include "tao/Priority_Mapping.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-class TAO_Export TAO_Linear_Priority_Mapping : public TAO_Priority_Mapping
-{
- //
- // = TITLE
- // A simple implementation of the Priority_Mapping interface
- //
- // = DESCRIPTION
- // This implementation uses linear 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)
- //
-public:
- TAO_Linear_Priority_Mapping (int policy = ACE_SCHED_OTHER);
- // Default constructor
-
- virtual ~TAO_Linear_Priority_Mapping (void);
- // The destructor
-
- 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);
-
-private:
- int policy_;
- // The scheduling policy
-
- int min_;
- int max_;
- // The range
-};
-
-#if defined (__ACE_INLINE__)
-# include "tao/Linear_Priority_Mapping.i"
-#endif /* __ACE_INLINE__ */
-
-#endif /* TAO_HAS_RT_CORBA */
-
-#endif /* TAO_LINEAR_PRIORITY_MAPPING_H */