Module: xenomai-3
Branch: next
Commit: eca8bf3db696ba473fc2312d2279e866e60ef979
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=eca8bf3db696ba473fc2312d2279e866e60ef979

Author: Philippe Gerum <r...@xenomai.org>
Date:   Mon Aug 24 14:32:35 2015 +0200

copperplate/timerobj: use default stack size for the server thread

PTHREAD_STACK_MIN * 16 was preposterous : there is specific stack size
requirement for the timer server thread, compared to any application
thread traversing the Xenomai libraries. Use PTHREAD_STACK_DEFAULT
instead.

---

 lib/copperplate/timerobj.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/copperplate/timerobj.c b/lib/copperplate/timerobj.c
index bbfa8f2..cbfcda5 100644
--- a/lib/copperplate/timerobj.c
+++ b/lib/copperplate/timerobj.c
@@ -149,7 +149,7 @@ static void timerobj_spawn_server(void)
        cta.prologue = server_prologue;
        cta.run = timerobj_server;
        cta.arg = NULL;
-       cta.stacksize = PTHREAD_STACK_MIN * 16;
+       cta.stacksize = PTHREAD_STACK_DEFAULT;
        cta.detachstate = PTHREAD_CREATE_DETACHED;
 
        __bt(copperplate_create_thread(&cta, &svthread));


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to