From 6c0e43d31ae1eb1b0ef057880d7cefa425b2fc30 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 29 Jul 2013 12:46:40 +0200 Subject: score: Add and use _Thread_Signal_notification() --- cpukit/score/include/rtems/score/threadimpl.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cpukit/score/include/rtems/score/threadimpl.h') 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 +#include #include #include @@ -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. -- cgit v1.2.3