summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixThrd.c
diff options
context:
space:
mode:
authordas <das>2006-10-13 04:54:16 (GMT)
committerdas <das>2006-10-13 04:54:16 (GMT)
commitaa68b77f6af4b4ca253e84ff63b3f600ce587a13 (patch)
tree2e515d8d08500e6ea7688d44d85de2b244a426d9 /unix/tclUnixThrd.c
parentb4a8d2a766c34971890c00827d75474e43c68c3d (diff)
downloadtcl-aa68b77f6af4b4ca253e84ff63b3f600ce587a13.zip
tcl-aa68b77f6af4b4ca253e84ff63b3f600ce587a13.tar.gz
tcl-aa68b77f6af4b4ca253e84ff63b3f600ce587a13.tar.bz2
* unix/tclUnixThrd.c (TclpThreadGetStackSize): on Darwin, use
* unix/tcl.m4: pthread_get_stacksize_np() API to get thread stack size. * unix/configure: autoconf-2.59 * unix/tclConfig.h.in: autoheader-2.59
Diffstat (limited to 'unix/tclUnixThrd.c')
-rw-r--r--unix/tclUnixThrd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/unix/tclUnixThrd.c b/unix/tclUnixThrd.c
index 434cbed..57795ab 100644
--- a/unix/tclUnixThrd.c
+++ b/unix/tclUnixThrd.c
@@ -233,6 +233,8 @@ TclpThreadGetStackSize(void)
}
pthread_attr_destroy(&threadAttr);
return (int) stackSize;
+#elif defined(HAVE_PTHREAD_GET_STACKSIZE_NP)
+ return (int) pthread_get_stacksize_np(pthread_self());
#else
/*
* Cannot determine the real stack size of this thread. The caller might