00001
00002
00003
00004
00005 #ifndef TAO_POA_MACROS_H
00006 #define TAO_POA_MACROS_H
00007
00008 #include "ace/pre.h"
00009
00010 #include "tao/orbconf.h"
00011
00012 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00013 # pragma once
00014 #endif
00015
00016 #define TAO_OBJECT_ADAPTER_GUARD \
00017 ACE_GUARD_THROW_EX (ACE_Lock, \
00018 monitor, \
00019 this->lock (), \
00020 CORBA::OBJ_ADAPTER ())
00021
00022 #define TAO_OBJECT_ADAPTER_GUARD_RETURN(RETURN) \
00023 ACE_GUARD_THROW_EX (ACE_Lock, \
00024 monitor, \
00025 this->lock (), \
00026 CORBA::OBJ_ADAPTER ())
00027
00028 #define TAO_POA_GUARD \
00029 TAO::Portable_Server::POA_Guard poa_guard (*this); \
00030 ACE_UNUSED_ARG (poa_guard)
00031
00032 #define TAO_POA_GUARD_RETURN(RETURN) \
00033 TAO::Portable_Server::POA_Guard poa_guard (*this); \
00034 ACE_UNUSED_ARG (poa_guard)
00035
00036 #include "ace/post.h"
00037
00038 #endif