summaryrefslogtreecommitdiff
path: root/ace/Base_Thread_Adapter.h
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2005-10-28 16:14:56 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2005-10-28 16:14:56 +0000
commit2aa4f50f829476ae276ba391127cc7266f603c96 (patch)
treec4fe2b70acf02ce19d199713fff6dec5645d8a93 /ace/Base_Thread_Adapter.h
parent28934d0116426fa37e2a562cfa0d95fa34241051 (diff)
downloadATCD-2aa4f50f829476ae276ba391127cc7266f603c96.tar.gz
ChangeLogTag:Fri Oct 28 00:01:06 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
Diffstat (limited to 'ace/Base_Thread_Adapter.h')
-rw-r--r--ace/Base_Thread_Adapter.h30
1 files changed, 24 insertions, 6 deletions
diff --git a/ace/Base_Thread_Adapter.h b/ace/Base_Thread_Adapter.h
index cd82e2b45ac..66848a365e3 100644
--- a/ace/Base_Thread_Adapter.h
+++ b/ace/Base_Thread_Adapter.h
@@ -1,3 +1,5 @@
+// -*- C++ -*-
+
//=============================================================================
/**
* @file Base_Thread_Adapter.h
@@ -25,14 +27,31 @@
#include "os_include/sys/os_time.h"
#endif // ACE_USES_GPROF
+#if (defined (ACE_HAS_VERSIONED_NAMESPACE) \
+ && ACE_HAS_VERSIONED_NAMESPACE == 1) \
+ && !(defined (_MSC_VER) && _MSC_VER <= 1200)
+// MSVC++ 6's preprocessor can't handle macro expansions required by
+// the versioned namespace support. *sigh*
+
+# define ACE_THREAD_ADAPTER_NAME ACE_PREPROC_CONCATENATE(ACE_VERSIONED_NAMESPACE_NAME, _ace_thread_adapter)
+
+#else
+
+# define ACE_THREAD_ADAPTER_NAME ace_thread_adapter
+
+#endif /* ACE_HAS_VERSIONED_NAMESPACE == 1 */
+
// Run the thread entry point for the ACE_Thread_Adapter. This must
// be an extern "C" to make certain compilers happy...
+
#if defined (ACE_PSOS)
-extern "C" void ace_thread_adapter (unsigned long args);
+extern "C" void ACE_THREAD_ADAPTER_NAME (unsigned long args);
#else /* ! defined (ACE_PSOS) */
-extern "C" ACE_Export ACE_THR_FUNC_RETURN ace_thread_adapter (void *args);
+extern "C" ACE_Export ACE_THR_FUNC_RETURN ACE_THREAD_ADAPTER_NAME (void *args);
#endif /* ACE_PSOS */
+ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+
/**
* @class ACE_OS_Thread_Descriptor
*
@@ -108,7 +127,7 @@ protected:
/// Constructor.
ACE_Base_Thread_Adapter (ACE_THR_FUNC user_func,
void *arg,
- ACE_THR_C_FUNC entry_point = (ACE_THR_C_FUNC) ace_thread_adapter,
+ ACE_THR_C_FUNC entry_point = (ACE_THR_C_FUNC) ACE_THREAD_ADAPTER_NAME,
ACE_OS_Thread_Descriptor *td = 0
# if defined (ACE_HAS_WIN32_STRUCTURAL_EXCEPTIONS)
, ACE_SEH_EXCEPT_HANDLER selector = 0
@@ -163,11 +182,10 @@ protected:
struct itimerval itimer_;
#endif // ACE_USES_GPROF
- /// Friend declaration to avoid compiler warning: only defines a private
- /// destructor and has no friends.
- friend class ACE_Thread_Adapter_Has_Private_Destructor;
};
+ACE_END_VERSIONED_NAMESPACE_DECL
+
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE