summaryrefslogtreecommitdiff
path: root/ACE/ace/OS_NS_Thread.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2007-07-30 07:15:59 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2007-07-30 07:15:59 +0000
commita42f5f9298054d284e61db51474cd7b2daa1fdef (patch)
treea08fd482d032ad66bd37a0b7b61234d00b676326 /ACE/ace/OS_NS_Thread.cpp
parentec8a7a5ec9a4725764f3b7ee79912637f220f092 (diff)
downloadATCD-a42f5f9298054d284e61db51474cd7b2daa1fdef.tar.gz
Mon Jul 30 07:15:12 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ACE/ace/OS_NS_Thread.cpp')
-rw-r--r--ACE/ace/OS_NS_Thread.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/ACE/ace/OS_NS_Thread.cpp b/ACE/ace/OS_NS_Thread.cpp
index 71329a0102c..3386e742652 100644
--- a/ACE/ace/OS_NS_Thread.cpp
+++ b/ACE/ace/OS_NS_Thread.cpp
@@ -3915,7 +3915,7 @@ ACE_OS::thr_create (ACE_THR_FUNC func,
# if defined (ACE_HAS_PTHREADS_DRAFT4) || defined (ACE_HAS_PTHREADS_DRAFT6)
if (::pthread_attr_setstacksize (&attr, size) != 0)
# else
-# if defined (ACE_HAS_PTHREAD_SETSTACK)
+# if !defined (ACE_LACKS_PTHREAD_ATTR_SETSTACK)
int result;
if (stack != 0)
result = ACE_ADAPT_RETVAL (pthread_attr_setstack (&attr, stack, size), result);
@@ -3924,7 +3924,7 @@ ACE_OS::thr_create (ACE_THR_FUNC func,
if (result == -1)
# else
if (ACE_ADAPT_RETVAL (pthread_attr_setstacksize (&attr, size), result) == -1)
-# endif /* ACE_HAS_PTHREAD_SETSTACK */
+# endif /* !ACE_LACKS_PTHREAD_ATTR_SETSTACK */
# endif /* ACE_HAS_PTHREADS_DRAFT4, 6 */
{
# if defined (ACE_HAS_PTHREADS_DRAFT4)
@@ -3940,7 +3940,7 @@ ACE_OS::thr_create (ACE_THR_FUNC func,
}
// *** Set Stack Address
-# if !defined (ACE_HAS_PTHREAD_SETSTACK)
+# if defined (ACE_LACKS_PTHREAD_ATTR_SETSTACK)
# if !defined (ACE_LACKS_THREAD_STACK_ADDR)
if (stack != 0)
{
@@ -3957,7 +3957,7 @@ ACE_OS::thr_create (ACE_THR_FUNC func,
# else
ACE_UNUSED_ARG (stack);
# endif /* !ACE_LACKS_THREAD_STACK_ADDR */
-# endif /* ACE_HAS_PTHREAD_SETSTACK */
+# endif /* ACE_LACKS_PTHREAD_ATTR_SETSTACK */
// *** Deal with various attributes
if (flags != 0)