*Backed out changeset 3be01fb200a5

--HG--
branch : trunk
This commit is contained in:
maximius
2009-10-17 15:51:44 -07:00
parent 26b5e033ff
commit e585187b24
2257 changed files with 103863 additions and 761 deletions
+10
View File
@@ -1,24 +1,33 @@
#include "ace/Init_ACE.h"
#include "ace/Object_Manager.h"
ACE_RCSID (ace,
Init_ACE,
"$Id: Init_ACE.cpp 80826 2008-03-04 14:51:23Z wotte $")
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
unsigned int ACE::init_fini_count_ = 0;
int
ACE::init (void)
{
// Don't use ACE_TRACE, because Object_Manager might not have been
// instantiated yet.
// ACE_TRACE ("ACE::init");
++ACE::init_fini_count_;
return ACE_Object_Manager::instance ()->init ();
}
int
ACE::fini (void)
{
ACE_TRACE ("ACE::fini");
if (ACE::init_fini_count_ > 0)
{
if (--ACE::init_fini_count_ == 0)
@@ -32,5 +41,6 @@ ACE::fini (void)
// application!
return -1;
}
ACE_END_VERSIONED_NAMESPACE_DECL