summaryrefslogtreecommitdiff
path: root/TAO/tao/PortableServer/poa_macros.h
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-09-01 05:06:42 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-09-01 05:06:42 +0000
commit96f2e77772c7c855d468a8b2ffed2608da6fe89c (patch)
treecc9c7723971543db846eaa8ee006f362f02274d4 /TAO/tao/PortableServer/poa_macros.h
parentab4409112cf5f931d25202a2ea0d0ea4dd6d4a03 (diff)
downloadATCD-96f2e77772c7c855d468a8b2ffed2608da6fe89c.tar.gz
ChangeLogTag:Thu Aug 31 16:31:04 2000 Carlos O'Ryan <coryan@uci.edu>
Diffstat (limited to 'TAO/tao/PortableServer/poa_macros.h')
-rw-r--r--TAO/tao/PortableServer/poa_macros.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/TAO/tao/PortableServer/poa_macros.h b/TAO/tao/PortableServer/poa_macros.h
new file mode 100644
index 00000000000..0f2b325646e
--- /dev/null
+++ b/TAO/tao/PortableServer/poa_macros.h
@@ -0,0 +1,38 @@
+// $Id$
+
+#ifndef TAO_POA_MACROS_H
+#define TAO_POA_MACROS_H
+#include "ace/pre.h"
+
+#include "tao/try_macros.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#define TAO_OBJECT_ADAPTER_GUARD \
+ ACE_GUARD_THROW_EX (ACE_Lock, \
+ monitor, \
+ this->lock (), \
+ CORBA::OBJ_ADAPTER ()); \
+ ACE_CHECK
+
+#define TAO_OBJECT_ADAPTER_GUARD_RETURN(RETURN) \
+ ACE_GUARD_THROW_EX (ACE_Lock, \
+ monitor, \
+ this->lock (), \
+ CORBA::OBJ_ADAPTER ()); \
+ ACE_CHECK_RETURN (RETURN)
+
+#define TAO_POA_GUARD \
+ TAO_POA_Guard poa_guard (*this, ACE_TRY_ENV); \
+ ACE_UNUSED_ARG (poa_guard); \
+ ACE_CHECK
+
+#define TAO_POA_GUARD_RETURN(RETURN) \
+ TAO_POA_Guard poa_guard (*this, ACE_TRY_ENV); \
+ ACE_UNUSED_ARG (poa_guard); \
+ ACE_CHECK_RETURN (RETURN)
+
+#include "ace/post.h"
+#endif /* TAO_POA_MACROS_H */