summaryrefslogtreecommitdiff
path: root/TAO/tao/poa_macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/poa_macros.h')
-rw-r--r--TAO/tao/poa_macros.h49
1 files changed, 0 insertions, 49 deletions
diff --git a/TAO/tao/poa_macros.h b/TAO/tao/poa_macros.h
deleted file mode 100644
index bce995456a4..00000000000
--- a/TAO/tao/poa_macros.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// $Id$
-
-// Convenient macro for testing for deadlock, as well as for detecting
-// when mutexes fail.
-#define TAO_POA_WRITE_GUARD(MUTEX,OBJ,LOCK,ENV) \
- do { \
- ACE_Write_Guard<MUTEX> OBJ (LOCK); \
- if (OBJ.locked () == 0) \
- { \
- CORBA::Exception *exception = new CORBA::OBJ_ADAPTER (CORBA::COMPLETED_NO); \
- ENV.exception (exception); \
- return; \
- } \
- } \
- while (0);
-#define TAO_POA_READ_GUARD(MUTEX,OBJ,LOCK,ENV) \
- do { \
- ACE_Read_Guard<MUTEX> OBJ (LOCK); \
- if (OBJ.locked () == 0) \
- { \
- CORBA::Exception *exception = new CORBA::OBJ_ADAPTER (CORBA::COMPLETED_NO); \
- ENV.exception (exception); \
- return; \
- } \
- } \
- while (0);
-#define TAO_POA_WRITE_GUARD_RETURN(MUTEX,OBJ,LOCK,RETURN,ENV) \
- do { \
- ACE_Write_Guard<MUTEX> OBJ (LOCK); \
- if (OBJ.locked () == 0) \
- { \
- CORBA::Exception *exception = new CORBA::OBJ_ADAPTER (CORBA::COMPLETED_NO); \
- ENV.exception (exception); \
- return RETURN; \
- } \
- } \
- while (0);
-#define TAO_POA_READ_GUARD_RETURN(MUTEX,OBJ,LOCK,RETURN,ENV) \
- do { \
- ACE_Read_Guard<MUTEX> OBJ (LOCK); \
- if (OBJ.locked () == 0) \
- { \
- CORBA::Exception *exception = new CORBA::OBJ_ADAPTER (CORBA::COMPLETED_NO); \
- ENV.exception (exception); \
- return RETURN; \
- } \
- } \
- while (0);
-