1 #include "ace/Init_ACE.h"
3 #include "ace/Object_Manager.h"
5 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
7 unsigned int ACE::init_fini_count_
= 0;
12 // Don't use ACE_TRACE, because Object_Manager might not have been
14 // ACE_TRACE ("ACE::init");
15 ++ACE::init_fini_count_
;
17 return ACE_Object_Manager::instance ()->init ();
23 ACE_TRACE ("ACE::fini");
25 if (ACE::init_fini_count_
> 0)
27 if (--ACE::init_fini_count_
== 0)
28 return ACE_Object_Manager::instance ()->fini ();
30 // Wait for remaining fini () calls.
34 // More ACE::fini () calls than ACE::init () calls. Bad
39 ACE_END_VERSIONED_NAMESPACE_DECL