From 580004a27c84231b39272ba57ab02b1a55da41d3 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 7 Jan 2008 15:30:21 +0000 Subject: [PATCH] 2008-01-07 Joel Sherrill * posix/src/pthreadcreate.c: Add commit. * posix/src/pthreadinitthreads.c: Fix line length. --- cpukit/ChangeLog | 5 +++++ cpukit/posix/src/pthreadcreate.c | 3 +++ cpukit/posix/src/pthreadinitthreads.c | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 37396827f9..b167104689 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2008-01-07 Joel Sherrill + + * posix/src/pthreadcreate.c: Add commit. + * posix/src/pthreadinitthreads.c: Fix line length. + 2008-01-07 Joel Sherrill * score/inline/rtems/score/object.inl: Add _Objects_Is_api_valid. 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(