diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-29 12:46:40 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-30 09:53:25 +0200 |
commit | 6c0e43d31ae1eb1b0ef057880d7cefa425b2fc30 (patch) | |
tree | 5d239ea55be7890ad314eb26e89edc7f1ee101d5 /cpukit/posix | |
parent | smptests/smppsxsignal01: New test (diff) | |
download | rtems-6c0e43d31ae1eb1b0ef057880d7cefa425b2fc30.tar.bz2 |
score: Add and use _Thread_Signal_notification()
Diffstat (limited to 'cpukit/posix')
-rw-r--r-- | cpukit/posix/src/psignalunblockthread.c | 3 | ||||
-rw-r--r-- | cpukit/posix/src/pthreadkill.c | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/cpukit/posix/src/psignalunblockthread.c b/cpukit/posix/src/psignalunblockthread.c index fdf6137d6f..52bd140f2d 100644 --- a/cpukit/posix/src/psignalunblockthread.c +++ b/cpukit/posix/src/psignalunblockthread.c @@ -111,8 +111,7 @@ bool _POSIX_signals_Unblock_thread( } } else if ( the_thread->current_state == STATES_READY ) { - if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) - _Thread_Dispatch_necessary = true; + _Thread_Signal_notification( the_thread ); } } return false; diff --git a/cpukit/posix/src/pthreadkill.c b/cpukit/posix/src/pthreadkill.c index 11287facba..9c839d7767 100644 --- a/cpukit/posix/src/pthreadkill.c +++ b/cpukit/posix/src/pthreadkill.c @@ -69,9 +69,7 @@ int pthread_kill( api->signals_pending |= signo_to_mask( sig ); (void) _POSIX_signals_Unblock_thread( the_thread, sig, NULL ); - - if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) - _Thread_Dispatch_necessary = true; + _Thread_Signal_notification( the_thread ); } _Objects_Put( &the_thread->Object ); return 0; |