* miscfuncs.cc (low_priority_sleep): New function. Use throughout where code
is supposed to be giving up time slice. * fhandler_console.cc (fhandler_console::read): Switch button 2/3 output escape sequences to be consistent with xterm.
This commit is contained in:
@@ -862,7 +862,7 @@ pthread_cond::Signal ()
|
||||
{
|
||||
InterlockedIncrement (&ExitingWait);
|
||||
/* give up the cpu to force a context switch. */
|
||||
Sleep (0);
|
||||
low_priority_sleep (0);
|
||||
if (spins == 5)
|
||||
/* we've had 5 timeslices, and the woken thread still hasn't done it's
|
||||
* thing - maybe we raced it with the event? */
|
||||
|
Reference in New Issue
Block a user