* 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:
Christopher Faylor
2002-11-13 19:36:12 +00:00
parent e91ec2e3e6
commit c0a02a4b42
13 changed files with 38 additions and 26 deletions

View File

@@ -175,7 +175,7 @@ fhandler_pty_master::accept_input ()
debug_printf ("to_slave pipe is full");
SetEvent (input_available_event);
ReleaseMutex (input_mutex);
Sleep (10);
low_priority_sleep (10);
rc = WaitForSingleObject (input_mutex, INFINITE);
}
}
@@ -279,7 +279,7 @@ fhandler_pty_master::process_slave_output (char *buf, size_t len, int pktmode_on
break;
}
Sleep (10);
low_priority_sleep (10);
}
if (ReadFile (handle, outbuf, rlen, &n, NULL) == FALSE)