sched_yield: was not invoking the dispatcher.

This commit is contained in:
Joel Sherrill
1996-08-09 18:45:10 +00:00
parent 695dd0b64c
commit 8699a7008e
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -142,6 +142,8 @@ int sched_rr_get_interval(
int sched_yield( void )
{
_Thread_Yield_processor();
_Thread_Disable_dispatch();
_Thread_Yield_processor();
_Thread_Enable_dispatch();
return 0;
}
+3 -1
View File
@@ -142,6 +142,8 @@ int sched_rr_get_interval(
int sched_yield( void )
{
_Thread_Yield_processor();
_Thread_Disable_dispatch();
_Thread_Yield_processor();
_Thread_Enable_dispatch();
return 0;
}