summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlli Savia <ops@iki.fi>2004-12-18 08:01:42 +0000
committerOlli Savia <ops@iki.fi>2004-12-18 08:01:42 +0000
commitebb93eadf8ef301b4e290e460ea92b48d3b6e456 (patch)
tree20423237cda558f4710aa2f51a307f1012ea6e9e
parent71dd63013583154a035071f84bafdc4220f5d65f (diff)
downloadATCD-ebb93eadf8ef301b4e290e460ea92b48d3b6e456.tar.gz
ChangeLogTag: Sat Dec 18 09:56:04 2004 Olli Savia <ops@iki.fi>
-rw-r--r--TAO/ChangeLog16
-rw-r--r--TAO/tao/Exception.h10
-rw-r--r--TAO/tao/RTScheduling/Current.cpp11
-rw-r--r--TAO/tao/SystemException.cpp11
-rw-r--r--TAO/tao/SystemException.h10
-rw-r--r--TAO/tests/RTScheduling/Scheduling_Interceptor/test_client.cpp8
-rw-r--r--TAO/tests/RTScheduling/Thread_Cancel/Thread_Task.cpp8
7 files changed, 26 insertions, 48 deletions
diff --git a/TAO/ChangeLog b/TAO/ChangeLog
index 31567e470e6..80dacd82f47 100644
--- a/TAO/ChangeLog
+++ b/TAO/ChangeLog
@@ -1,8 +1,20 @@
+Sat Dec 18 09:56:04 2004 Olli Savia <ops@iki.fi>
+
+ * tao/Exception.h:
+ * tao/RTScheduling/Current.cpp:
+ * tao/SystemException.h:
+ * tao/SystemException.cpp:
+ * tests/RTScheduling/Scheduling_Interceptor/test_client.cpp:
+ * tests/RTScheduling/Thread_Cancel/Thread_Task.cpp:
+ Replaced __Lynx__ macro with ACE_HAS_PREDEFINED_THREAD_CANCELLED_MACRO
+ macro. This makes code maintenace easier across different
+ LynxOS versions.
+
Sat Dec 18 01:08:42 2004 Balachandran Natarajan <bala@dre.vanderbilt.edu>
- * Release:
+ * Release:
- Added missing tabs.
+ Added missing tabs.
Fri Dec 17 13:03:03 2004 Chad Elliott <elliott_c@ociweb.com>
diff --git a/TAO/tao/Exception.h b/TAO/tao/Exception.h
index 9a6cff3dd5c..5c3ac5d7a07 100644
--- a/TAO/tao/Exception.h
+++ b/TAO/tao/Exception.h
@@ -44,15 +44,9 @@ class ACE_Allocator;
class TAO_OutputCDR;
class TAO_InputCDR;
-#if defined (__Lynx__)
-
-// LynxOS uses macro THREAD_CANCELLED internally, so it must
-// be undefined to avoid compilation errors
-#if defined (THREAD_CANCELLED)
+#if defined (ACE_HAS_PREDEFINED_THREAD_CANCELLED_MACRO)
#undef THREAD_CANCELLED
-#endif /* THREAD_CANCELLED */
-
-#endif /*__Lynx__ */
+#endif /* ACE_HAS_PREDEFINED_THREAD_CANCELLED_MACRO */
// This is already done in orbconf.h. But this file is totally
// decoupled from its contents that we have to do this here. Including
diff --git a/TAO/tao/RTScheduling/Current.cpp b/TAO/tao/RTScheduling/Current.cpp
index 9538a8ec98a..8e915a6dfb1 100644
--- a/TAO/tao/RTScheduling/Current.cpp
+++ b/TAO/tao/RTScheduling/Current.cpp
@@ -728,16 +728,9 @@ TAO_RTScheduler_Current_i::name (void)
return CORBA::string_dup (this->name_.in ());
}
-#if defined (__Lynx__)
-
-// LynxOS uses macro THREAD_CANCELLED internally, so it must
-// be undefined to avoid compilation errors
-#if defined (THREAD_CANCELLED)
+#if defined (ACE_HAS_PREDEFINED_THREAD_CANCELLED_MACRO)
#undef THREAD_CANCELLED
-#endif /* THREAD_CANCELLED */
-
-#endif /*__Lynx__ */
-
+#endif /* ACE_HAS_PREDEFINED_THREAD_CANCELLED_MACRO */
void
TAO_RTScheduler_Current_i::cancel_thread (ACE_ENV_SINGLE_ARG_DECL)
diff --git a/TAO/tao/SystemException.cpp b/TAO/tao/SystemException.cpp
index f7f7651659e..8d069db2295 100644
--- a/TAO/tao/SystemException.cpp
+++ b/TAO/tao/SystemException.cpp
@@ -915,16 +915,9 @@ TAO_Exceptions::make_standard_typecode (CORBA::TypeCode_ptr &tcp,
return;
}
-#if defined (__Lynx__)
-
-// LynxOS uses macro THREAD_CANCELLED internally, so it must
-// be undefined to avoid compilation errors
-#if defined (THREAD_CANCELLED)
+#if defined (ACE_HAS_PREDEFINED_THREAD_CANCELLED_MACRO)
#undef THREAD_CANCELLED
-#endif /* THREAD_CANCELLED */
-
-#endif /*__Lynx__ */
-
+#endif /* ACE_HAS_PREDEFINED_THREAD_CANCELLED_MACRO */
// List of standard/system exceptions ... used to create static
// storage for their typecodes, then later to initialize that storage
diff --git a/TAO/tao/SystemException.h b/TAO/tao/SystemException.h
index eda4e0f4a8d..27d237d3e83 100644
--- a/TAO/tao/SystemException.h
+++ b/TAO/tao/SystemException.h
@@ -32,15 +32,9 @@
class TAO_OutputCDR;
class TAO_InputCDR;
-#if defined (__Lynx__)
-
-// LynxOS uses macro THREAD_CANCELLED internally, so it must
-// be undefined to avoid compilation errors
-#if defined (THREAD_CANCELLED)
+#if defined (ACE_HAS_PREDEFINED_THREAD_CANCELLED_MACRO)
#undef THREAD_CANCELLED
-#endif /* THREAD_CANCELLED */
-
-#endif /*__Lynx__ */
+#endif /* ACE_HAS_PREDEFINED_THREAD_CANCELLED_MACRO */
// This is already done in orbconf.h. But this file is totally
// decoupled from its contents that we have to do this here. Including
diff --git a/TAO/tests/RTScheduling/Scheduling_Interceptor/test_client.cpp b/TAO/tests/RTScheduling/Scheduling_Interceptor/test_client.cpp
index cc568b0965d..3c1752548a0 100644
--- a/TAO/tests/RTScheduling/Scheduling_Interceptor/test_client.cpp
+++ b/TAO/tests/RTScheduling/Scheduling_Interceptor/test_client.cpp
@@ -31,13 +31,9 @@ parse_args (int argc,
return 0;
}
-#if defined (__Lynx__)
-// LynxOS uses macro THREAD_CANCELLED internally, so it must
-// be undefined to avoid compilation errors
-#if defined (THREAD_CANCELLED)
+#if defined (ACE_HAS_PREDEFINED_THREAD_CANCELLED_MACRO)
#undef THREAD_CANCELLED
-#endif /* THREAD_CANCELLED */
-#endif /*__Lynx__ */
+#endif /* ACE_HAS_PREDEFINED_THREAD_CANCELLED_MACRO */
int
main (int argc, char* argv [])
diff --git a/TAO/tests/RTScheduling/Thread_Cancel/Thread_Task.cpp b/TAO/tests/RTScheduling/Thread_Cancel/Thread_Task.cpp
index fab3b59fe37..4cdf2f37848 100644
--- a/TAO/tests/RTScheduling/Thread_Cancel/Thread_Task.cpp
+++ b/TAO/tests/RTScheduling/Thread_Cancel/Thread_Task.cpp
@@ -58,13 +58,9 @@ Thread_Task::activate_task (CORBA::ORB_ptr orb)
return 0;
}
-#if defined (__Lynx__)
-// LynxOS uses macro THREAD_CANCELLED internally, so it must
-// be undefined to avoid compilation errors
-#if defined (THREAD_CANCELLED)
+#if defined (ACE_HAS_PREDEFINED_THREAD_CANCELLED_MACRO)
#undef THREAD_CANCELLED
-#endif /* THREAD_CANCELLED */
-#endif /*__Lynx__ */
+#endif /* ACE_HAS_PREDEFINED_THREAD_CANCELLED_MACRO */
int
Thread_Task::svc (void)