ThreadPolicy.cpp

Go to the documentation of this file.
00001 #include "tao/orbconf.h"
00002 
00003 ACE_RCSID (PortableServer,
00004            ThreadPolicy,
00005            "$Id: ThreadPolicy.cpp 76995 2007-02-11 12:51:42Z johnnyw $")
00006 
00007 #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO)
00008 
00009 #include "tao/PortableServer/ThreadPolicy.h"
00010 #include "tao/PortableServer/PortableServer.h"
00011 
00012 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00013 
00014 namespace TAO
00015 {
00016   namespace Portable_Server
00017   {
00018     ThreadPolicy::ThreadPolicy (::PortableServer::ThreadPolicyValue value)
00019       : value_ (value)
00020     {
00021     }
00022 
00023     CORBA::Policy_ptr
00024     ThreadPolicy::copy (void)
00025     {
00026       ThreadPolicy *copy = 0;
00027       ACE_NEW_THROW_EX (copy,
00028                         ThreadPolicy (this->value_),
00029                         CORBA::NO_MEMORY ());
00030 
00031       return copy;
00032     }
00033 
00034     void
00035     ThreadPolicy::destroy (void)
00036     {
00037     }
00038 
00039     ::PortableServer::ThreadPolicyValue
00040     ThreadPolicy::value (void)
00041     {
00042       return value_;
00043     }
00044 
00045     CORBA::PolicyType
00046     ThreadPolicy::policy_type (void)
00047     {
00048       return ::PortableServer::THREAD_POLICY_ID;
00049     }
00050 
00051     TAO_Cached_Policy_Type
00052     ThreadPolicy::_tao_cached_type (void) const
00053     {
00054       return TAO_CACHED_POLICY_THREAD;
00055     }
00056 
00057     TAO_Policy_Scope
00058     ThreadPolicy::_tao_scope (void) const
00059     {
00060       return TAO_POLICY_POA_SCOPE;
00061     }
00062   }
00063 }
00064 
00065 TAO_END_VERSIONED_NAMESPACE_DECL
00066 
00067 #endif /* TAO_HAS_MINIMUM_POA == 0 */

Generated on Tue Feb 2 17:40:54 2010 for TAO_PortableServer by  doxygen 1.4.7