Module: xenomai-head
Branch: master
Commit: cc55cc408d0e0833962d5241e5a4aae361795600
URL:    
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=cc55cc408d0e0833962d5241e5a4aae361795600

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Thu Aug 13 21:25:32 2009 +0200

native: increase user-space native skin default stack size.

PTHREAD_STACK_MIN varies a lot depending on architecture and versions of the
glibc, so, choose a reasonable default value of 32K for the default stack size
instead of relying on PTHREAD_STACK_MIN in case its value would be too small
for a simple printf.

---

 src/skins/native/task.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/skins/native/task.c b/src/skins/native/task.c
index 6df1e88..f6c2de9 100644
--- a/src/skins/native/task.c
+++ b/src/skins/native/task.c
@@ -146,6 +146,8 @@ int rt_task_create(RT_TASK *task,
 
        pthread_attr_init(&thattr);
 
+       if (!stksize)
+               stksize = 32 * 1024;
        if (stksize < PTHREAD_STACK_MIN)
                stksize = PTHREAD_STACK_MIN;
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to