summaryrefslogtreecommitdiff
path: root/ace/OS.cpp
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2003-02-07 22:30:15 +0000
committerSteve Huston <shuston@riverace.com>2003-02-07 22:30:15 +0000
commit82a6a56d63e3d4d0df725304430757f178d1d1c1 (patch)
tree84401bce1b719306935904268d2ebf12db780ad0 /ace/OS.cpp
parente6e20a375f29e47fce12c5ec0a380172613958d7 (diff)
downloadATCD-82a6a56d63e3d4d0df725304430757f178d1d1c1.tar.gz
ChangeLogTag:Fri Feb 7 17:22:39 2003 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ace/OS.cpp')
-rw-r--r--ace/OS.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/ace/OS.cpp b/ace/OS.cpp
index bd51e9eb87f..7b6b060ea1f 100644
--- a/ace/OS.cpp
+++ b/ace/OS.cpp
@@ -2596,13 +2596,13 @@ ACE_OS::thr_create (ACE_THR_FUNC func,
# if !defined (ACE_LACKS_THREAD_STACK_SIZE) // JCEJ 12/17/96
# if defined (ACE_HAS_PTHREADS_DRAFT4) || defined (ACE_HAS_PTHREADS_DRAFT6)
-# if !defined (ACE_HAS_PTHREAD_SETSTACK)
-      if (::pthread_attr_setstack (&attr, stack, size) != 0)
-# else
if (::pthread_attr_setstacksize (&attr, size) != 0)
-# endif /* ACE_HAS_PTHREAD_SETSTACK */
# else
+# if defined (ACE_HAS_PTHREAD_SETSTACK)
+ if (ACE_ADAPT_RETVAL(pthread_attr_setstack (&attr, stack, size), result) == -1)
+# else
if (ACE_ADAPT_RETVAL(pthread_attr_setstacksize (&attr, size), result) == -1)
+# endif /* ACE_HAS_PTHREAD_SETSTACK */
# endif /* ACE_HAS_PTHREADS_DRAFT4, 6 */
{
# if defined (ACE_HAS_PTHREADS_DRAFT4)