Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / PortableServer / ThreadPolicy.cpp
blob38dbb7e1f15518e5f16d826df60b955c40623e13
1 // -*- C++ -*-
2 #include "tao/orbconf.h"
4 #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO)
6 #include "tao/PortableServer/ThreadPolicy.h"
7 #include "tao/PortableServer/PortableServer.h"
9 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
11 namespace TAO
13 namespace Portable_Server
15 ThreadPolicy::ThreadPolicy (::PortableServer::ThreadPolicyValue value)
16 : value_ (value)
20 CORBA::Policy_ptr
21 ThreadPolicy::copy ()
23 ThreadPolicy *copy = 0;
24 ACE_NEW_THROW_EX (copy,
25 ThreadPolicy (this->value_),
26 CORBA::NO_MEMORY ());
28 return copy;
31 void
32 ThreadPolicy::destroy ()
36 ::PortableServer::ThreadPolicyValue
37 ThreadPolicy::value ()
39 return value_;
42 CORBA::PolicyType
43 ThreadPolicy::policy_type ()
45 return ::PortableServer::THREAD_POLICY_ID;
48 TAO_Cached_Policy_Type
49 ThreadPolicy::_tao_cached_type () const
51 return TAO_CACHED_POLICY_THREAD;
54 TAO_Policy_Scope
55 ThreadPolicy::_tao_scope () const
57 return TAO_POLICY_POA_SCOPE;
62 TAO_END_VERSIONED_NAMESPACE_DECL
64 #endif /* TAO_HAS_MINIMUM_POA == 0 */