diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:21 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:21 +0000 |
commit | 0e49389337be86641451a5c36c24bf742fe97523 (patch) | |
tree | 197c810e5f5bce17b1233a7cb8d7b50c0bcd25e2 /TAO/tao/TSS_Resources.cpp | |
parent | 8008dd09ccf88d4edef237a184a698cac42f2952 (diff) | |
download | ATCD-0e49389337be86641451a5c36c24bf742fe97523.tar.gz |
Repo restructuring
Diffstat (limited to 'TAO/tao/TSS_Resources.cpp')
-rw-r--r-- | TAO/tao/TSS_Resources.cpp | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/TAO/tao/TSS_Resources.cpp b/TAO/tao/TSS_Resources.cpp new file mode 100644 index 00000000000..73ec7175070 --- /dev/null +++ b/TAO/tao/TSS_Resources.cpp @@ -0,0 +1,51 @@ +// $Id$ + +#include "tao/TSS_Resources.h" +#include "tao/GUIResource_Factory.h" +#include "tao/TAO_Singleton.h" + +ACE_RCSID (tao, + TSS_Resources, + "$Id$") + + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +TAO_TSS_Resources::TAO_TSS_Resources (void) + : poa_current_impl_ (0) + , rtscheduler_current_impl_ (0) + , rtscheduler_previous_current_impl_ (0) + , default_environment_ (&tss_environment_) + +#if (TAO_HAS_CORBA_MESSAGING == 1) + + , policy_current_ (&initial_policy_current_) + +#endif /* TAO_HAS_CORBA_MESSAGING == 1 */ + , gui_resource_factory_ (0) + +{ +} + +TAO_TSS_Resources::~TAO_TSS_Resources (void) +{ + delete this->gui_resource_factory_; +} + +TAO_TSS_Resources * +TAO_TSS_Resources::instance (void) +{ + // Hide the template instantiation to prevent multiple instances + // from being created. + + return + TAO_TSS_Singleton<TAO_TSS_Resources, TAO_SYNCH_MUTEX>::instance (); +} + +#if defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION) +template + TAO_TSS_Singleton<TAO_TSS_Resources, TAO_SYNCH_MUTEX> * + TAO_TSS_Singleton<TAO_TSS_Resources, TAO_SYNCH_MUTEX>::singleton_; +#endif /* ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION */ + +TAO_END_VERSIONED_NAMESPACE_DECL |