diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-05-11 14:56:49 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-05-19 12:00:48 +0200 |
commit | aa05cfbb3d6309ec45b69f34d0870465fe30b74c (patch) | |
tree | e004fe884c7018b81bf430b095af350b66f86f6f /cpukit/posix/src/psignalunblockthread.c | |
parent | score: Add static initializers for thread queues (diff) | |
download | rtems-aa05cfbb3d6309ec45b69f34d0870465fe30b74c.tar.bz2 |
score: Replace _Thread_Delay_ended()
Use _Thread_Timeout() instead. Use pseudo thread queue for nanosleep()
to deal with signals.
Close #2130.
Diffstat (limited to 'cpukit/posix/src/psignalunblockthread.c')
-rw-r--r-- | cpukit/posix/src/psignalunblockthread.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/cpukit/posix/src/psignalunblockthread.c b/cpukit/posix/src/psignalunblockthread.c index 3b310a90b7..200e9e714b 100644 --- a/cpukit/posix/src/psignalunblockthread.c +++ b/cpukit/posix/src/psignalunblockthread.c @@ -110,16 +110,7 @@ bool _POSIX_signals_Unblock_thread( 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 - * queue, but is also interruptible by a POSIX signal. - */ - if ( _States_Is_delaying(the_thread->current_state) ) { - _Watchdog_Remove_ticks( &the_thread->Timer ); - _Thread_Unblock( the_thread ); - } else { - _Thread_queue_Extract_with_proxy( the_thread ); - } + _Thread_queue_Extract_with_proxy( the_thread ); } } return _POSIX_signals_Unblock_thread_done( the_thread, api, false ); |