diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-01-07 15:30:21 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-01-07 15:30:21 +0000 |
commit | 580004a27c84231b39272ba57ab02b1a55da41d3 (patch) | |
tree | d9060115a7bd11487a4c4483d8e17b1e44835169 /cpukit/posix | |
parent | 2008-01-07 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-580004a27c84231b39272ba57ab02b1a55da41d3.tar.bz2 |
2008-01-07 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/src/pthreadcreate.c: Add commit.
* posix/src/pthreadinitthreads.c: Fix line length.
Diffstat (limited to 'cpukit/posix')
-rw-r--r-- | cpukit/posix/src/pthreadcreate.c | 3 | ||||
-rw-r--r-- | cpukit/posix/src/pthreadinitthreads.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/posix/src/pthreadcreate.c b/cpukit/posix/src/pthreadcreate.c index 2423bda4d3..e5aff1ea78 100644 --- a/cpukit/posix/src/pthreadcreate.c +++ b/cpukit/posix/src/pthreadcreate.c @@ -237,6 +237,9 @@ int pthread_create( /* * _Thread_Start only fails if the thread was in the incorrect state + * + * NOTE: This can only happen if someone slips in and touches the + * thread while we are creating it. */ if ( !status ) { diff --git a/cpukit/posix/src/pthreadinitthreads.c b/cpukit/posix/src/pthreadinitthreads.c index 5f71770e95..0e452ad7a0 100644 --- a/cpukit/posix/src/pthreadinitthreads.c +++ b/cpukit/posix/src/pthreadinitthreads.c @@ -73,7 +73,7 @@ void _POSIX_Threads_Initialize_user_threads_body( void ) status = pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED ); assert( !status ); - status = pthread_attr_setstacksize( &attr, user_threads[ index ].stack_size); + status = pthread_attr_setstacksize(&attr, user_threads[ index ].stack_size); assert( !status ); status = pthread_create( |