2010-07-29 Joel Sherrill <joel.sherrilL@OARcorp.com>

* posix/src/psignalunblockthread.c: Clean up and simplify.
This commit is contained in:
Joel Sherrill
2010-07-29 17:49:30 +00:00
parent bafe269d8e
commit 53eafcb0d2
2 changed files with 7 additions and 4 deletions

View File

@@ -1,3 +1,7 @@
2010-07-29 Joel Sherrill <joel.sherrilL@OARcorp.com>
* posix/src/psignalunblockthread.c: Clean up and simplify.
2010-07-28 Vinu Rajashekhar <vinutheraj@gmail.com>
* posix/src/condinit.c, posix/src/condwaitsupp.c,

View File

@@ -98,7 +98,7 @@ bool _POSIX_signals_Unblock_thread(
* + Any other combination, do nothing.
*/
if ( the_thread->current_state & STATES_INTERRUPTIBLE_BY_SIGNAL ) {
if ( _States_Is_interruptible_by_signal( the_thread->current_state ) ) {
the_thread->Wait.return_code = EINTR;
/*
* In pthread_cond_wait, a thread will be blocking on a thread
@@ -106,9 +106,8 @@ bool _POSIX_signals_Unblock_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) ){
if ( _Watchdog_Is_active( &the_thread->Timer ) )
(void) _Watchdog_Remove( &the_thread->Timer );
else if ( _States_Is_delaying(the_thread->current_state) ) {
(void) _Watchdog_Remove( &the_thread->Timer );
_Thread_Unblock( the_thread );
}