diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-04-10 19:59:37 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-04-10 19:59:37 +0000 |
commit | 3df4acfa816441fc28a95dee6d0191a927145d95 (patch) | |
tree | b5ae7ca44662cfd8e5c95f1826e4406021a606f5 /ace/Init_ACE.cpp | |
parent | 60a5612b83d856fc0adc52b9f39fac9960ec9818 (diff) | |
download | ATCD-pre-subset.tar.gz |
This commit was manufactured by cvs2svn to create tag 'pre-subset'.pre-subset
Diffstat (limited to 'ace/Init_ACE.cpp')
-rw-r--r-- | ace/Init_ACE.cpp | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/ace/Init_ACE.cpp b/ace/Init_ACE.cpp deleted file mode 100644 index 87fece39bde..00000000000 --- a/ace/Init_ACE.cpp +++ /dev/null @@ -1,45 +0,0 @@ -#include "ace/Init_ACE.h" - -#include "ace/Object_Manager.h" - -#if defined (ACE_LACKS_INLINE_FUNCTIONS) -#include "ace/Init_ACE.i" -#endif /* ACE_LACKS_INLINE_FUNCTIONS */ - -ACE_RCSID (ace, - Init_ACE, - "$Id$") - -// Static data members. -unsigned int ACE_Init_ACE::init_fini_count_ = 0; - -int -ACE_Init_ACE::init (void) -{ - // Don't use ACE_TRACE, because Object_Manager might not have been - // instantiated yet. - // ACE_TRACE ("ACE_Init_ACE::init"); - - ++init_fini_count_; - - return ACE_Object_Manager::instance ()->init (); -} - -int -ACE_Init_ACE::fini (void) -{ - ACE_TRACE ("ACE_Init_ACE::fini"); - - if (init_fini_count_ > 0) - { - if (--init_fini_count_ == 0) - return ACE_Object_Manager::instance ()->fini (); - else - // Wait for remaining fini () calls. - return 1; - } - else - // More ACE_Init_ACE::fini () calls than ACE_Init_ACE::init () calls. Bad - // application! - return -1; -} |