summaryrefslogtreecommitdiff
path: root/ACE/TAO/tao/Endpoint.inl
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/TAO/tao/Endpoint.inl')
-rw-r--r--ACE/TAO/tao/Endpoint.inl40
1 files changed, 40 insertions, 0 deletions
diff --git a/ACE/TAO/tao/Endpoint.inl b/ACE/TAO/tao/Endpoint.inl
new file mode 100644
index 00000000000..ab570490899
--- /dev/null
+++ b/ACE/TAO/tao/Endpoint.inl
@@ -0,0 +1,40 @@
+// -*- C++ -*-
+//
+// $Id$
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+ACE_INLINE
+TAO_Endpoint::TAO_Endpoint (CORBA::ULong tag,
+ CORBA::Short priority)
+ : addr_lookup_lock_ ()
+ // @@ Would be a tragedy if the hash value of this endpoint is 0, in
+ // which case this optimizaton wouldn't work. We can get around
+ // that using a bool. But we don't want to increase the runtime
+ // memory.
+ , hash_val_ (0)
+ , tag_ (tag)
+ , priority_ (priority)
+
+{
+}
+
+ACE_INLINE CORBA::ULong
+TAO_Endpoint::tag (void) const
+{
+ return this->tag_;
+}
+
+ACE_INLINE CORBA::Short
+TAO_Endpoint::priority (void) const
+{
+ return this->priority_;
+}
+
+ACE_INLINE void
+TAO_Endpoint::priority (CORBA::Short p)
+{
+ this->priority_ = p;
+}
+
+TAO_END_VERSIONED_NAMESPACE_DECL