summaryrefslogtreecommitdiffstats
path: root/lib/libkse/thread/thr_attr_init.c
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2003-07-18 02:46:55 +0000
committerdeischen <deischen@FreeBSD.org>2003-07-18 02:46:55 +0000
commit8c86a69beb11982e649317ffae6803742f1d0bcc (patch)
treeadcaaa6f7105bf1eafccce659645ce0d84dd1754 /lib/libkse/thread/thr_attr_init.c
parent875c5215cc8eb12453d2815a29a56842237d4327 (diff)
downloadFreeBSD-src-8c86a69beb11982e649317ffae6803742f1d0bcc.zip
FreeBSD-src-8c86a69beb11982e649317ffae6803742f1d0bcc.tar.gz
Cleanup thread accounting. Don't reset a threads timeslice
when it blocks; it only gets reset when it yields. Properly set a thread's default stack guardsize. Reviewed by: davidxu
Diffstat (limited to 'lib/libkse/thread/thr_attr_init.c')
-rw-r--r--lib/libkse/thread/thr_attr_init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libkse/thread/thr_attr_init.c b/lib/libkse/thread/thr_attr_init.c
index d8b701e..9c73463 100644
--- a/lib/libkse/thread/thr_attr_init.c
+++ b/lib/libkse/thread/thr_attr_init.c
@@ -53,6 +53,7 @@ _pthread_attr_init(pthread_attr_t *attr)
/* Initialise the attribute object with the defaults: */
memcpy(pattr, &_pthread_attr_default,
sizeof(struct pthread_attr));
+ pattr->guardsize_attr = _thr_guard_default;
/* Return a pointer to the attribute object: */
*attr = pattr;
OpenPOWER on IntegriCloud