diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2005-05-19 07:33:55 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2005-05-19 07:33:55 +0000 |
commit | c38d5ecd4c9f3885a104bf4b35c918907fb3bfbb (patch) | |
tree | dfe7b79d9a6b3b607c31b58f3eea9bad07583e4a /TAO/tao/TSS_Resources.h | |
parent | a9e9d11f53973d7b24541e9e86a728edec0e40b0 (diff) | |
download | ATCD-c38d5ecd4c9f3885a104bf4b35c918907fb3bfbb.tar.gz |
ChangeLogTag:Thu May 19 00:29:35 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
Diffstat (limited to 'TAO/tao/TSS_Resources.h')
-rw-r--r-- | TAO/tao/TSS_Resources.h | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/TAO/tao/TSS_Resources.h b/TAO/tao/TSS_Resources.h index fa67eead299..a85d840eb38 100644 --- a/TAO/tao/TSS_Resources.h +++ b/TAO/tao/TSS_Resources.h @@ -14,6 +14,7 @@ #ifndef TAO_TAO_TSS_RESOURCES_H #define TAO_TAO_TSS_RESOURCES_H + #include /**/ "ace/pre.h" #include "tao/Policy_Manager.h" @@ -23,7 +24,6 @@ # pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ -#include "tao/TAO_Singleton.h" #include "tao/Environment.h" #include "tao/TAO_Export.h" @@ -51,6 +51,9 @@ public: /// Destructor ~TAO_TSS_Resources (void); + /// Return a singleton instance of this class. + static TAO_TSS_Resources * instance (void); + private: /// Do not copy TSS resources @@ -93,24 +96,20 @@ public: TAO_Policy_Current_Impl * policy_current_; #endif /* TAO_HAS_CORBA_MESSAGING == 1 */ - /** A factory for creating GUIReactors. - * - * GUIResource_Factory has to be stored in TSS, as GUIReactor are operational - * only in within the context of GUI event loops. + + /// A factory for creating GUIReactors. + /** + * @c GUIResource_Factory has to be stored in TSS, as GUIReactors + * are operational only in within the context of GUI event loops. */ - TAO::GUIResource_Factory *gui_resource_factory_; + TAO::GUIResource_Factory * gui_resource_factory_; }; /** - * @todo TAO_TSS_RESOURCES singleton typedef should go away. + * @todo TAO_TSS_RESOURCES typedef should go away. It is deprecated, + * and only exists for backward compatibility. */ -typedef TAO_TSS_Singleton<TAO_TSS_Resources, TAO_SYNCH_MUTEX> - TAO_TSS_RESOURCES; - -TAO_SINGLETON_DECLARE (TAO_TSS_Singleton, - TAO_TSS_Resources, - TAO_SYNCH_MUTEX) - +typedef TAO_TSS_Resources TAO_TSS_RESOURCES; #include /**/ "ace/post.h" |