summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/threadimpl.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-29 12:46:40 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-30 09:53:25 +0200
commit6c0e43d31ae1eb1b0ef057880d7cefa425b2fc30 (patch)
tree5d239ea55be7890ad314eb26e89edc7f1ee101d5 /cpukit/score/include/rtems/score/threadimpl.h
parentsmptests/smppsxsignal01: New test (diff)
downloadrtems-6c0e43d31ae1eb1b0ef057880d7cefa425b2fc30.tar.bz2
score: Add and use _Thread_Signal_notification()
Diffstat (limited to 'cpukit/score/include/rtems/score/threadimpl.h')
-rw-r--r--cpukit/score/include/rtems/score/threadimpl.h7
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.