summaryrefslogtreecommitdiff
path: root/TAO/tao/Endpoint.i
blob: 10d7d86325b9f4c913eacaa74dff255727b0e8f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// -*- C++ -*-
// $Id$

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;
}