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/score/include | |
parent | smptests/smppsxsignal01: New test (diff) | |
download | rtems-6c0e43d31ae1eb1b0ef057880d7cefa425b2fc30.tar.bz2 |
score: Add and use _Thread_Signal_notification()
Diffstat (limited to 'cpukit/score/include')
-rw-r--r-- | cpukit/score/include/rtems/score/threadimpl.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/threadimpl.h b/cpukit/score/include/rtems/score/threadimpl.h index 0496a7a802..d50980d4db 100644 --- a/cpukit/score/include/rtems/score/threadimpl.h +++ b/cpukit/score/include/rtems/score/threadimpl.h @@ -20,6 +20,7 @@ #define _RTEMS_SCORE_THREADIMPL_H #include <rtems/score/thread.h> +#include <rtems/score/isr.h> #include <rtems/score/objectimpl.h> #include <rtems/score/statesimpl.h> @@ -657,6 +658,12 @@ RTEMS_INLINE_ROUTINE void _Thread_Dispatch_if_necessary( } } +RTEMS_INLINE_ROUTINE void _Thread_Signal_notification( Thread_Control *thread ) +{ + if ( _ISR_Is_in_progress() && _Thread_Is_executing( thread ) ) + _Thread_Dispatch_necessary = true; +} + #if !defined(__DYNAMIC_REENT__) /** * This routine returns the C library re-enterant pointer. |