* sched.c (sched_yield): Just call SwitchToThread because yield now
potentially switches CPU.
This commit is contained in:
parent
51b5e9211d
commit
5e6a91549e
@ -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
|
||||
|
@ -483,7 +483,7 @@ sched_setscheduler (pid_t pid, int policy,
|
||||
int
|
||||
sched_yield ()
|
||||
{
|
||||
yield ();
|
||||
SwitchToThread ();
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user