summaryrefslogtreecommitdiffstats
path: root/c/src/exec/score/src/thread.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1995-07-31 22:22:38 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1995-07-31 22:22:38 +0000
commit3a5dbdca1b37bacc18fe61701530d28c6f1254ee (patch)
treef66a52eed17566556efe5622d384bc6c01c9f4b3 /c/src/exec/score/src/thread.c
parentfixed path problem for POSIX (diff)
downloadrtems-3a5dbdca1b37bacc18fe61701530d28c6f1254ee.tar.bz2
Switched to events for mp receive server and eliminated the special
blocking mechanism for it.
Diffstat (limited to 'c/src/exec/score/src/thread.c')
-rw-r--r--c/src/exec/score/src/thread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/c/src/exec/score/src/thread.c b/c/src/exec/score/src/thread.c
index a181780e52..9c9a7691c8 100644
--- a/c/src/exec/score/src/thread.c
+++ b/c/src/exec/score/src/thread.c
@@ -316,7 +316,8 @@ void _Thread_Clear_state(
if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
_Thread_Heir = the_thread;
- if ( _Modes_Is_preempt( _Thread_Executing->current_modes ) )
+ if ( _Modes_Is_preempt( _Thread_Executing->current_modes ) ||
+ the_thread->current_priority == 0 )
_Context_Switch_necessary = TRUE;
}
}