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.h

Go to the documentation of this file.
00001 //=============================================================================
00002 /**
00003  *  @file    Default_Thread_Lane_Resources_Manager.h
00004  *
00005  *  $Id: Default_Thread_Lane_Resources_Manager.h,v 1.1.1.2 2003/02/21 18:36:44 chad Exp $
00006  *
00007  *  @author  Irfan Pyarali
00008  */
00009 // ===================================================================
00010 
00011 #ifndef TAO_DEFAULT_THREAD_LANE_RESOURCES_MANAGER_H
00012 #define TAO_DEFAULT_THREAD_LANE_RESOURCES_MANAGER_H
00013 
00014 #include "ace/pre.h"
00015 #include "tao/orbconf.h"
00016 
00017 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00018 # pragma once
00019 #endif /* ACE_LACKS_PRAGMA_ONCE */
00020 
00021 #include "tao/Thread_Lane_Resources_Manager.h"
00022 #include "ace/Service_Config.h"
00023 
00024 /**
00025  * @class TAO_Default_Thread_Lane_Resources_Manager
00026  *
00027  * @brief Simple manager for thread lane resources.
00028  *
00029  * \nosubgrouping
00030  *
00031  **/
00032 class TAO_Export TAO_Default_Thread_Lane_Resources_Manager :
00033   public TAO_Thread_Lane_Resources_Manager
00034 {
00035 public:
00036 
00037   /// Constructor.
00038   TAO_Default_Thread_Lane_Resources_Manager (TAO_ORB_Core &orb_core);
00039 
00040   /// Destructor.
00041   ~TAO_Default_Thread_Lane_Resources_Manager (void);
00042 
00043   /// Finalize resources.
00044   void finalize (void);
00045 
00046   /// Open default resources.
00047   int open_default_resources (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS);
00048 
00049   /// Shutdown reactor.
00050   void shutdown_reactor (void);
00051 
00052   // Does <mprofile> belong to us?
00053   int is_collocated (const TAO_MProfile &mprofile);
00054 
00055   /// @name Accessors
00056   // @{
00057 
00058   TAO_Thread_Lane_Resources &lane_resources (void);
00059 
00060   TAO_Thread_Lane_Resources &default_lane_resources (void);
00061 
00062   // @}
00063 
00064 protected:
00065 
00066   /// Default lane resources.
00067   TAO_Thread_Lane_Resources *lane_resources_;
00068 };
00069 
00070 /**
00071  * @class TAO_Default_Thread_Lane_Resources_Manager_Factory
00072  *
00073  * @brief This class is a factory for managers of thread resources.
00074  *
00075  * \nosubgrouping
00076  *
00077  **/
00078 class TAO_Export TAO_Default_Thread_Lane_Resources_Manager_Factory
00079   : public TAO_Thread_Lane_Resources_Manager_Factory
00080 {
00081 public:
00082 
00083   /// Factory method.
00084   TAO_Thread_Lane_Resources_Manager *create_thread_lane_resources_manager (TAO_ORB_Core &core);
00085 
00086 };
00087 
00088 ACE_STATIC_SVC_DECLARE_EXPORT (TAO, TAO_Default_Thread_Lane_Resources_Manager_Factory)
00089 ACE_FACTORY_DECLARE (TAO, TAO_Default_Thread_Lane_Resources_Manager_Factory)
00090 
00091 #if defined (__ACE_INLINE__)
00092 # include "tao/Default_Thread_Lane_Resources_Manager.i"
00093 #endif /* __ACE_INLINE__ */
00094 
00095 #include "ace/post.h"
00096 
00097 #endif /* TAO_DEFAULT_THREAD_LANE_RESOURCES_MANAGER_H */

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