* 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:
@ -214,7 +214,7 @@ std_dll_init ()
|
||||
do
|
||||
{
|
||||
InterlockedDecrement (&dll->here);
|
||||
Sleep (0);
|
||||
low_priority_sleep (0);
|
||||
}
|
||||
while (InterlockedIncrement (&dll->here));
|
||||
else if (!dll->handle)
|
||||
@ -263,7 +263,7 @@ wsock_init ()
|
||||
while (InterlockedIncrement (&here))
|
||||
{
|
||||
InterlockedDecrement (&here);
|
||||
Sleep (0);
|
||||
low_priority_sleep (0);
|
||||
}
|
||||
|
||||
if (!wsock_started && (winsock_active || winsock2_active))
|
||||
|
Reference in New Issue
Block a user