Initial Patch of Auction House bot rev. 135
[auctionmangos.git] / dep / ACE_wrappers / ace / Init_ACE.h
blob2492f6930de5b9f8f7465a93149ebc55d708582b
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Init_ACE.h
7 * $Id: Init_ACE.h 80826 2008-03-04 14:51:23Z wotte $
9 * Initialize ACE library services. Can be called only once per
10 * program invocation.
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)
23 # pragma once
24 #endif /* ACE_LACKS_PRAGMA_ONCE */
26 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
28 namespace ACE
30 /**
31 * This class implements the functions for the initialization and
32 * shutting down ACE. These functions are called only once per ACE
33 * invokation.
34 * @return Returns 0 on success, -1 on failure, and 1 if it had already been
35 * called.
37 extern ACE_Export int init (void);
39 /**
40 * Shut down ACE library services. Can be called only once per
41 * program invocation.
42 * @return Returns 0 on success, -1 on failure, and 1 if it had already been
43 * called.
45 extern ACE_Export int fini (void);
47 // private:
48 // Used internally, so not exported.
50 /**
51 * Counter to match <init()>/<fini()> calls. <init()> must increment it;
52 * <fini()> must decrement it. <fini()> then does nothing until it
53 * reaches 0.
55 extern unsigned int init_fini_count_;
58 ACE_END_VERSIONED_NAMESPACE_DECL
60 #include /**/ "ace/post.h"
62 #endif /* ACE_INIT_ACE_H */