Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / PortableServer / poa_macros.h
blob5be8ff1fc58495f404c1469fd726f05475122596
1 // -*- C++ -*-
3 #ifndef TAO_POA_MACROS_H
4 #define TAO_POA_MACROS_H
6 #include /**/ "ace/pre.h"
8 #include "tao/orbconf.h"
10 #if !defined (ACE_LACKS_PRAGMA_ONCE)
11 # pragma once
12 #endif /* ACE_LACKS_PRAGMA_ONCE */
14 #define TAO_OBJECT_ADAPTER_GUARD \
15 ACE_GUARD_THROW_EX (ACE_Lock, \
16 monitor, \
17 this->lock (), \
18 CORBA::OBJ_ADAPTER ())
20 #define TAO_OBJECT_ADAPTER_GUARD_RETURN(RETURN) \
21 ACE_GUARD_THROW_EX (ACE_Lock, \
22 monitor, \
23 this->lock (), \
24 CORBA::OBJ_ADAPTER ())
26 #define TAO_POA_GUARD \
27 TAO::Portable_Server::POA_Guard poa_guard (*this); \
28 ACE_UNUSED_ARG (poa_guard)
30 #define TAO_POA_GUARD_RETURN(RETURN) \
31 TAO::Portable_Server::POA_Guard poa_guard (*this); \
32 ACE_UNUSED_ARG (poa_guard)
34 #include /**/ "ace/post.h"
36 #endif /* TAO_POA_MACROS_H */