00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file ThreadStrategy.h 00006 * 00007 * $Id: ThreadStrategy.h 76551 2007-01-24 13:42:44Z johnnyw $ 00008 * 00009 * @author Johnny Willemsen <jwillemsen@remedy.nl> 00010 */ 00011 //============================================================================= 00012 00013 #ifndef TAO_THREAD_STRATEGY_H 00014 #define TAO_THREAD_STRATEGY_H 00015 #include /**/ "ace/pre.h" 00016 00017 #include "tao/PortableServer/Policy_Strategy.h" 00018 00019 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00020 # pragma once 00021 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00022 00023 #include "tao/PortableServer/ThreadPolicyC.h" 00024 #include "tao/orbconf.h" 00025 00026 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00027 00028 namespace TAO 00029 { 00030 namespace Portable_Server 00031 { 00032 class ThreadStrategy 00033 : public Policy_Strategy 00034 { 00035 public: 00036 virtual int enter () = 0; 00037 00038 virtual int exit () = 0; 00039 00040 virtual void strategy_init (TAO_Root_POA *poa); 00041 00042 virtual void strategy_cleanup(void); 00043 00044 virtual ::PortableServer::ThreadPolicyValue type() const = 0; 00045 }; 00046 } 00047 } 00048 00049 TAO_END_VERSIONED_NAMESPACE_DECL 00050 00051 #include /**/ "ace/post.h" 00052 #endif /* TAO_THREAD_STRATEGY_H */