summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadyield.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/threadyield.c')
-rw-r--r--cpukit/score/src/threadyield.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/score/src/threadyield.c b/cpukit/score/src/threadyield.c
index fc796dabea..7f1c175b4a 100644
--- a/cpukit/score/src/threadyield.c
+++ b/cpukit/score/src/threadyield.c
@@ -29,13 +29,13 @@
void _Thread_Yield( Thread_Control *executing )
{
- ISR_Level level;
+ ISR_lock_Context lock_context;
- _ISR_Disable( level );
+ _Scheduler_Acquire( executing, &lock_context );
if ( _States_Is_ready( executing->current_state ) ) {
_Scheduler_Yield( executing );
}
- _ISR_Enable( level );
+ _Scheduler_Release( executing, &lock_context );
}