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)
commit3ff2c4dac7dae79dea63a3958f699b9e3a39b7c7 (patch)
tree2e515d8d08500e6ea7688d44d85de2b244a426d9 /unix/tclUnixThrd.c
parent7fad20b386099ce01facf9c6049f51b7516e9b32 (diff)
downloadtcl-3ff2c4dac7dae79dea63a3958f699b9e3a39b7c7.zip
tcl-3ff2c4dac7dae79dea63a3958f699b9e3a39b7c7.tar.gz
tcl-3ff2c4dac7dae79dea63a3958f699b9e3a39b7c7.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