3 //=============================================================================
7 * $Id: Init_ACE.h 80826 2008-03-04 14:51:23Z wotte $
9 * Initialize ACE library services. Can be called only once per
12 //=============================================================================
15 #ifndef ACE_INIT_ACE_H
16 #define ACE_INIT_ACE_H
18 #include /**/ "ace/pre.h"
20 #include /**/ "ace/ACE_export.h"
22 #if !defined (ACE_LACKS_PRAGMA_ONCE)
24 #endif /* ACE_LACKS_PRAGMA_ONCE */
26 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
31 * This class implements the functions for the initialization and
32 * shutting down ACE. These functions are called only once per ACE
34 * @return Returns 0 on success, -1 on failure, and 1 if it had already been
37 extern ACE_Export
int init (void);
40 * Shut down ACE library services. Can be called only once per
42 * @return Returns 0 on success, -1 on failure, and 1 if it had already been
45 extern ACE_Export
int fini (void);
48 // Used internally, so not exported.
51 * Counter to match <init()>/<fini()> calls. <init()> must increment it;
52 * <fini()> must decrement it. <fini()> then does nothing until it
55 extern unsigned int init_fini_count_
;
58 ACE_END_VERSIONED_NAMESPACE_DECL
60 #include /**/ "ace/post.h"
62 #endif /* ACE_INIT_ACE_H */