diff options
| author | cl <cl@NetBSD.org> | 2003-11-27 16:30:54 +0000 |
|---|---|---|
| committer | cl <cl@NetBSD.org> | 2003-11-27 16:30:54 +0000 |
| commit | 2c9b7b1eb7cf6199e202d971ea1e1b784bbeaa0e (patch) | |
| tree | d10a35fef8c2699a9ae40b580cc8c3267cd2390b /lib/libpthread/pthread.3 | |
| parent | 4f9a822f1f7fb5c8d0a802b121c9fd4036d4b41c (diff) | |
Set default stack size to the current limit on the stack size as set
with the shell's command to change limits. Make the PTHREAD_STACKSIZE
environment variable override the default stack size. The old fixed
stack size behaviour can be enable with PT_FIXEDSTACKSIZE_LG when building
libpthread.
Diffstat (limited to 'lib/libpthread/pthread.3')
| -rw-r--r-- | lib/libpthread/pthread.3 | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/lib/libpthread/pthread.3 b/lib/libpthread/pthread.3 index 0407b8cc158..b6e01444658 100644 --- a/lib/libpthread/pthread.3 +++ b/lib/libpthread/pthread.3 @@ -1,4 +1,4 @@ -.\" $NetBSD: pthread.3,v 1.2 2003/07/26 19:25:06 salo Exp $ +.\" $NetBSD: pthread.3,v 1.3 2003/11/27 16:30:54 cl Exp $ .\" .\" Copyright (c) 2003 Hubert Feyrer <hubertf@NetBSD.org> .\" and Thomas Klausner <wiz@NetBSD.org> @@ -27,7 +27,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd June 21, 2003 +.Dd November 27, 2003 .Dt PTHREAD 3 .Os .Sh NAME @@ -88,6 +88,18 @@ program found in Integer value giving the round-robin interval in ms. The default is 100. If set to 0, timer-based round-robin scheduling is disabled. +.It Ev PTHREAD_STACKSIZE +Integer value giving the stack size in kilobytes. +This allows to set a smaller stack size than the default stack size. +The default stack size is the current limit on the stack size as +set with the shell's command to change limits +.Ic ( limit +for +.Xr csh 1 , +or +.Ic ulimit +for +.Xr sh 1 ) . .El .Sh SEE ALSO .Xr pthread_attr 3 , |
