Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef TAO_CONTINUOUS_PRIORITY_MAPPING_H
00014 #define TAO_CONTINUOUS_PRIORITY_MAPPING_H
00015
00016 #include "ace/pre.h"
00017
00018 #include "tao/orbconf.h"
00019
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 # pragma once
00022 #endif
00023
00024 #if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
00025
00026 #include "tao/RTCORBA/rtcorba_export.h"
00027 #include "tao/RTCORBA/Priority_Mapping.h"
00028
00029 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050 class TAO_RTCORBA_Export TAO_Continuous_Priority_Mapping
00051 : public TAO_Priority_Mapping
00052 {
00053 public:
00054
00055
00056 TAO_Continuous_Priority_Mapping (int policy = ACE_SCHED_OTHER);
00057
00058
00059 ~TAO_Continuous_Priority_Mapping (void);
00060
00061
00062 CORBA::Boolean to_native (RTCORBA::Priority corba_priority,
00063 RTCORBA::NativePriority &native_priority);
00064
00065
00066 CORBA::Boolean to_CORBA (RTCORBA::NativePriority native_priority,
00067 RTCORBA::Priority &corba_priority);
00068
00069 private:
00070 int policy_;
00071 int min_;
00072 int max_;
00073 };
00074
00075 TAO_END_VERSIONED_NAMESPACE_DECL
00076
00077 #endif
00078
00079 #include "ace/post.h"
00080
00081 #endif