Module: xenomai-gch
Branch: for-2.4
Commit: 0c79a25de4ef172bf1bcc0b311202e4bdbd78027
URL:    
http://git.xenomai.org/?p=xenomai-gch.git;a=commit;h=0c79a25de4ef172bf1bcc0b311202e4bdbd78027

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 41c72fd..b85f75c 100644
--- a/src/skins/native/task.c
+++ b/src/skins/native/task.c
@@ -132,6 +132,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