diff options
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.inl')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.inl | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.inl b/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.inl new file mode 100644 index 00000000000..3098246643a --- /dev/null +++ b/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.inl @@ -0,0 +1,39 @@ +// -*- C++ -*- + +//============================================================================= +/** + * @file RTCosScheduling_ServerScheduler_i.inl + * + * $Id$ + * + * @author Matt Murphy <murphym@cs.uri.edu> + */ +//============================================================================= + + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +ACE_INLINE int +ACE_Equal_To< COS_SCHEDULING_OBJECT_NAME_KEY >::operator () ( + COS_SCHEDULING_OBJECT_NAME_KEY lhs, + COS_SCHEDULING_OBJECT_NAME_KEY rhs) const +{ + return lhs->_is_equivalent(rhs.in()); +} + +ACE_INLINE u_long +TAO::CosSchedulingObjectMap_Hash_Key::operator () ( + const COS_SCHEDULING_OBJECT_NAME_KEY &key) const +{ + u_long value = key->_hash(ACE_UINT32_MAX); + return value; +} + +ACE_INLINE u_long +TAO::CosSchedulingInvocation_Hash_key::operator () ( + const COS_SCHEDULING_INVOCATION_KEY &key) const +{ + return static_cast<u_long> (key); +} + +TAO_END_VERSIONED_NAMESPACE_DECL |