Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Default_Thread_Lane_Resources_Manager.cpp

Go to the documentation of this file.
00001 #include "tao_pch.h"
00002 // $Id: Default_Thread_Lane_Resources_Manager.cpp,v 1.1.1.2.2.1 2003/03/14 16:05:12 chad Exp $
00003 
00004 #include "tao/Default_Thread_Lane_Resources_Manager.h"
00005 
00006 ACE_RCSID(tao, Default_Thread_Lane_Resources_Manager, "$Id: Default_Thread_Lane_Resources_Manager.cpp,v 1.1.1.2.2.1 2003/03/14 16:05:12 chad Exp $")
00007 
00008 #include "tao/ORB_Core.h"
00009 #include "tao/Acceptor_Registry.h"
00010 #include "tao/Thread_Lane_Resources.h"
00011 #include "tao/Leader_Follower.h"
00012 
00013 #if !defined (__ACE_INLINE__)
00014 # include "tao/Default_Thread_Lane_Resources_Manager.i"
00015 #endif /* ! __ACE_INLINE__ */
00016 
00017 TAO_Default_Thread_Lane_Resources_Manager::TAO_Default_Thread_Lane_Resources_Manager (TAO_ORB_Core &orb_core)
00018   : TAO_Thread_Lane_Resources_Manager (orb_core),
00019     lane_resources_ (0)
00020 {
00021   // Create the default resources.
00022   ACE_NEW (this->lane_resources_,
00023            TAO_Thread_Lane_Resources (orb_core));
00024 }
00025 
00026 TAO_Default_Thread_Lane_Resources_Manager::~TAO_Default_Thread_Lane_Resources_Manager (void)
00027 {
00028   // Delete the default resources.
00029   delete this->lane_resources_;
00030 }
00031 
00032 int
00033 TAO_Default_Thread_Lane_Resources_Manager::open_default_resources (ACE_ENV_SINGLE_ARG_DECL)
00034 {
00035   int result =
00036     this->lane_resources_->open_acceptor_registry (0
00037                                                     ACE_ENV_ARG_PARAMETER);
00038   ACE_CHECK_RETURN (-1);
00039 
00040   return result;
00041 }
00042 
00043 void
00044 TAO_Default_Thread_Lane_Resources_Manager::finalize (void)
00045 {
00046   // Finalize default resources.
00047   this->lane_resources_->finalize ();
00048 }
00049 
00050 TAO_Thread_Lane_Resources &
00051 TAO_Default_Thread_Lane_Resources_Manager::lane_resources (void)
00052 {
00053   return *this->lane_resources_;
00054 }
00055 
00056 TAO_Thread_Lane_Resources &
00057 TAO_Default_Thread_Lane_Resources_Manager::default_lane_resources (void)
00058 {
00059   return this->lane_resources ();
00060 }
00061 
00062 void
00063 TAO_Default_Thread_Lane_Resources_Manager::shutdown_reactor (void)
00064 {
00065   this->lane_resources_->shutdown_reactor ();
00066 }
00067 
00068 int
00069 TAO_Default_Thread_Lane_Resources_Manager::is_collocated (const TAO_MProfile &mprofile)
00070 {
00071   return this->lane_resources_->is_collocated (mprofile);
00072 }
00073 
00074 TAO_Thread_Lane_Resources_Manager *
00075 TAO_Default_Thread_Lane_Resources_Manager_Factory::create_thread_lane_resources_manager (TAO_ORB_Core &core)
00076 {
00077   TAO_Thread_Lane_Resources_Manager *manager = 0;
00078 
00079   /// Create the Default Thread Lane Resources Manager.
00080   ACE_NEW_RETURN (manager,
00081                   TAO_Default_Thread_Lane_Resources_Manager (core),
00082                   0);
00083 
00084   return manager;
00085 }
00086 
00087 ACE_STATIC_SVC_DEFINE (TAO_Default_Thread_Lane_Resources_Manager_Factory,
00088                        ACE_TEXT ("Default_Thread_Lane_Resources_Manager_Factory"),
00089                        ACE_SVC_OBJ_T,
00090                        &ACE_SVC_NAME (TAO_Default_Thread_Lane_Resources_Manager_Factory),
00091                        ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
00092                        0)
00093 ACE_FACTORY_DEFINE (TAO, TAO_Default_Thread_Lane_Resources_Manager_Factory)

Generated on Mon Jun 16 13:48:14 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002