diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2004-07-01 08:53:54 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2004-07-01 08:53:54 +0000 |
commit | d5f10b6039be1cebf76676d6ca339c05e54621ab (patch) | |
tree | 531cd6bf6d5ec6e72d587c44f25173eb221ab89b | |
parent | b9af104eee1cc1e722d071f3eefccfb86c227597 (diff) | |
download | ATCD-d5f10b6039be1cebf76676d6ca339c05e54621ab.tar.gz |
ChangeLogTag: Thu Jul 01 08:53:12 UTC 2004 Johnny Willemsen <jwillemsen@remedy.nl>
-rw-r--r-- | TAO/tao/RTCORBA/Multi_Priority_Mapping.cpp | 4 | ||||
-rw-r--r-- | TAO/tao/RTCORBA/Multi_Priority_Mapping.h | 50 |
2 files changed, 36 insertions, 18 deletions
diff --git a/TAO/tao/RTCORBA/Multi_Priority_Mapping.cpp b/TAO/tao/RTCORBA/Multi_Priority_Mapping.cpp index 957cbe676b0..62f5a55efce 100644 --- a/TAO/tao/RTCORBA/Multi_Priority_Mapping.cpp +++ b/TAO/tao/RTCORBA/Multi_Priority_Mapping.cpp @@ -3,6 +3,8 @@ #include "tao/orbconf.h" +#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0 + #include "tao/RTCORBA/Multi_Priority_Mapping.h" #include "tao/debug.h" #include "ace/Log_Msg.h" @@ -228,3 +230,5 @@ TAO_Multi_Priority_Mapping::to_CORBA (RTCORBA::NativePriority native_priority, return 1; } + +#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */ diff --git a/TAO/tao/RTCORBA/Multi_Priority_Mapping.h b/TAO/tao/RTCORBA/Multi_Priority_Mapping.h index c02ed918036..36f234ad117 100644 --- a/TAO/tao/RTCORBA/Multi_Priority_Mapping.h +++ b/TAO/tao/RTCORBA/Multi_Priority_Mapping.h @@ -28,28 +28,40 @@ # pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ +#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0 + +/** + * @class TAO_Multi_Priority_Mapping + * + * @brief 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) + */ class TAO_RTCORBA_Export TAO_Multi_Priority_Mapping : public TAO_Priority_Mapping { - // - // = TITLE - // An implementation of the Priority_Mapping interface for communication between different platforms - // - // = DESCRIPTION - // 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) - // public: - TAO_Multi_Priority_Mapping (int base_native_priority, // The native priority to use for the highest priority endpoint - int base_corba_priority, // The corba priority to use for the highest priority endpoint - int priority_spacing = 1, // The priority increment to use between endpoints - int priorities_contiguous = 1, // Some platforms do use contiguous priorities - int policy = ACE_SCHED_FIFO); // The scheduling policy to use. - // Default constructor + /// Default constructor + /** + * @param base_native_priority The native priority to use for the highest + * priority endpoint. + * @param base_corba_priority The corba priority to use for the highest + * priority endpoint + * @param priority_spacing The priority increment to use between endpoints + * @param priorities_contiguous Some platforms do use contiguous priorities + * @param policy The scheduling policy to use. + */ + 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); + /// The destructor virtual ~TAO_Multi_Priority_Mapping (void); - // The destructor virtual CORBA::Boolean to_native (RTCORBA::Priority corba_priority, @@ -67,8 +79,8 @@ private: const int priority_spacing_; const int priorities_contiguous_; + /// The scheduling policy int policy_; - // The scheduling policy int min_; int max_; @@ -79,4 +91,6 @@ private: # include "tao/RTCORBA/Multi_Priority_Mapping.i" #endif /* __ACE_INLINE__ */ +#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */ + #endif /* TAO_MULTI_PRIORITY_MAPPING_H */ |