summaryrefslogtreecommitdiffstats
path: root/cpukit/posix
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-08-09 18:45:10 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-08-09 18:45:10 +0000
commit8699a7008e52fd24a750a77d31883081b418dcf4 (patch)
tree700e4d48d6d644171c05f71f3d1679975a9f7b18 /cpukit/posix
parentInit: added condattr - destroy, init, set and get cases (diff)
downloadrtems-8699a7008e52fd24a750a77d31883081b418dcf4.tar.bz2
sched_yield: was not invoking the dispatcher.
Diffstat (limited to 'cpukit/posix')
-rw-r--r--cpukit/posix/src/sched.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/posix/src/sched.c b/cpukit/posix/src/sched.c
index f16bb12757..cacb3400c4 100644
--- a/cpukit/posix/src/sched.c
+++ b/cpukit/posix/src/sched.c
@@ -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;
}