summaryrefslogtreecommitdiffstats
path: root/c/src/exec/posix/src/pthread.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-05-07 16:36:29 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-05-07 16:36:29 +0000
commit16775a55354508f1aa434c1d347e6921006b49a2 (patch)
tree8d3cb2dd543b83aa3080d6e941c0b6fd688f91cf /c/src/exec/posix/src/pthread.c
parentAdded rules to handle alternate suffixes for C++ files. (diff)
downloadrtems-16775a55354508f1aa434c1d347e6921006b49a2.tar.bz2
Patch from Jiri Gaisler <jgais@ws.estec.esa.nl> to allow stacksize
of POSIX Init thread to be user configured.
Diffstat (limited to 'c/src/exec/posix/src/pthread.c')
-rw-r--r--c/src/exec/posix/src/pthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/src/exec/posix/src/pthread.c b/c/src/exec/posix/src/pthread.c
index f97b3a805d..1a238b006a 100644
--- a/c/src/exec/posix/src/pthread.c
+++ b/c/src/exec/posix/src/pthread.c
@@ -260,7 +260,7 @@ void _POSIX_Threads_Initialize_user_threads( void )
status = pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED );
assert( !status );
- status = pthread_attr_setstacksize( &attr, PTHREAD_MINIMUM_STACK_SIZE * 2 );
+ status = pthread_attr_setstacksize( &attr, user_threads[ index ].stack_size);
assert( !status );
status = pthread_create(