diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1995-07-31 22:22:38 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1995-07-31 22:22:38 +0000 |
commit | 3a5dbdca1b37bacc18fe61701530d28c6f1254ee (patch) | |
tree | f66a52eed17566556efe5622d384bc6c01c9f4b3 /c/src/exec/score/src/thread.c | |
parent | fixed path problem for POSIX (diff) | |
download | rtems-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.c | 3 |
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; } } |