diff options
-rw-r--r-- | cpukit/ChangeLog | 4 | ||||
-rw-r--r-- | cpukit/posix/src/psignalunblockthread.c | 14 |
2 files changed, 11 insertions, 7 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 8a3a1a4b48..c0e26ca44f 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,9 @@ 2010-10-21 Joel Sherrill <joel.sherrill@oarcorp.com> + * posix/src/psignalunblockthread.c: Formatting. + +2010-10-21 Joel Sherrill <joel.sherrill@oarcorp.com> + * posix/src/mutextimedlock.c: Check status local variable not lock_status. diff --git a/cpukit/posix/src/psignalunblockthread.c b/cpukit/posix/src/psignalunblockthread.c index baa55c34c2..f6bf5fcc7d 100644 --- a/cpukit/posix/src/psignalunblockthread.c +++ b/cpukit/posix/src/psignalunblockthread.c @@ -104,16 +104,16 @@ bool _POSIX_signals_Unblock_thread( * In pthread_cond_wait, a thread will be blocking on a thread * queue, but is also interruptible by a POSIX signal. */ - if ( _States_Is_waiting_on_thread_queue(the_thread->current_state) ) - _Thread_queue_Extract_with_proxy( the_thread ); - else if ( _States_Is_delaying(the_thread->current_state) ) { - (void) _Watchdog_Remove( &the_thread->Timer ); - _Thread_Unblock( the_thread ); - } + if ( _States_Is_waiting_on_thread_queue(the_thread->current_state) ) + _Thread_queue_Extract_with_proxy( the_thread ); + else if ( _States_Is_delaying(the_thread->current_state) ) { + (void) _Watchdog_Remove( &the_thread->Timer ); + _Thread_Unblock( the_thread ); + } } else if ( the_thread->current_state == STATES_READY ) { if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) - _Thread_Dispatch_necessary = true; + _Thread_Dispatch_necessary = true; } } return false; |