Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tao / PortableServer / POA_Guard.h
blob4fd3b438ca38c3e256e7b77137275c991f5ef129
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file POA_Guard.h
6 */
7 //=============================================================================
9 #ifndef TAO_POA_GUARD_H
10 #define TAO_POA_GUARD_H
12 #include /**/ "ace/pre.h"
14 #include "tao/PortableServer/portableserver_export.h"
16 #if !defined (ACE_LACKS_PRAGMA_ONCE)
17 # pragma once
18 #endif /* ACE_LACKS_PRAGMA_ONCE */
20 #include "tao/orbconf.h"
21 #include "ace/Guard_T.h"
23 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
25 class TAO_Root_POA;
27 namespace TAO
29 namespace Portable_Server
31 /**
32 * @class POA_Guard
34 * @brief POA_Guard
36 * POA_Guard
38 class TAO_PortableServer_Export POA_Guard
40 public:
41 POA_Guard (::TAO_Root_POA &poa, bool check_for_destruction = true);
43 private:
44 // FUZZ: disable check_for_ACE_Guard
45 ACE_Guard<ACE_Lock> guard_;
46 // FUZZ: enable check_for_ACE_Guard
48 } /* namespace Portable_Server */
49 } /* namespace TAO */
51 TAO_END_VERSIONED_NAMESPACE_DECL
53 #include /**/ "ace/post.h"
55 #endif /* TAO_POA_GUARD_H */