forked from Imagelibrary/rtems
2010-07-29 Joel Sherrill <joel.sherrilL@OARcorp.com>
* posix/src/psignalunblockthread.c: Clean up and simplify.
This commit is contained in:
@@ -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>
|
2010-07-28 Vinu Rajashekhar <vinutheraj@gmail.com>
|
||||||
|
|
||||||
* posix/src/condinit.c, posix/src/condwaitsupp.c,
|
* posix/src/condinit.c, posix/src/condwaitsupp.c,
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ bool _POSIX_signals_Unblock_thread(
|
|||||||
* + Any other combination, do nothing.
|
* + 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;
|
the_thread->Wait.return_code = EINTR;
|
||||||
/*
|
/*
|
||||||
* In pthread_cond_wait, a thread will be blocking on a thread
|
* 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) )
|
if ( _States_Is_waiting_on_thread_queue(the_thread->current_state) )
|
||||||
_Thread_queue_Extract_with_proxy( the_thread );
|
_Thread_queue_Extract_with_proxy( the_thread );
|
||||||
else if ( _States_Is_delaying(the_thread->current_state) ){
|
else if ( _States_Is_delaying(the_thread->current_state) ) {
|
||||||
if ( _Watchdog_Is_active( &the_thread->Timer ) )
|
(void) _Watchdog_Remove( &the_thread->Timer );
|
||||||
(void) _Watchdog_Remove( &the_thread->Timer );
|
|
||||||
_Thread_Unblock( the_thread );
|
_Thread_Unblock( the_thread );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user