* sched.c (sched_yield): Just call SwitchToThread because yield now

potentially switches CPU.
This commit is contained in:
Corinna Vinschen 2011-07-06 18:35:44 +00:00
parent 51b5e9211d
commit 5e6a91549e
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-07-06 Corinna Vinschen <corinna@vinschen.de>
* sched.c (sched_yield): Just call SwitchToThread because yield now
potentially switches CPU.
2011-07-06 Christopher Faylor <me.cygwin2011@cgf.cx>
* exceptions.cc (_cygtls::interrupt_now): Don't check for spinning

View File

@ -483,7 +483,7 @@ sched_setscheduler (pid_t pid, int policy,
int
sched_yield ()
{
yield ();
SwitchToThread ();
return 0;
}
}