* sched.c (sched_yield): Just call SwitchToThread because yield now
potentially switches CPU.
This commit is contained in:
@ -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>
|
2011-07-06 Christopher Faylor <me.cygwin2011@cgf.cx>
|
||||||
|
|
||||||
* exceptions.cc (_cygtls::interrupt_now): Don't check for spinning
|
* exceptions.cc (_cygtls::interrupt_now): Don't check for spinning
|
||||||
|
@ -483,7 +483,7 @@ sched_setscheduler (pid_t pid, int policy,
|
|||||||
int
|
int
|
||||||
sched_yield ()
|
sched_yield ()
|
||||||
{
|
{
|
||||||
yield ();
|
SwitchToThread ();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user