diff options
author | Christopher Faylor <me@cgf.cx> | 2002-11-13 19:36:12 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-11-13 19:36:12 +0000 |
commit | c0a02a4b42accbc574e84654cd845f8971d6a298 (patch) | |
tree | 92e12cd2345ecc26c4f64806e4edea173fc8e99a /winsup/cygwin/tty.cc | |
parent | e91ec2e3e6fbe82b6b481305a15aec370006baf0 (diff) | |
download | cygnal-c0a02a4b42accbc574e84654cd845f8971d6a298.tar.gz cygnal-c0a02a4b42accbc574e84654cd845f8971d6a298.tar.bz2 cygnal-c0a02a4b42accbc574e84654cd845f8971d6a298.zip |
* 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.
Diffstat (limited to 'winsup/cygwin/tty.cc')
-rw-r--r-- | winsup/cygwin/tty.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/tty.cc b/winsup/cygwin/tty.cc index 9a295244f..0e3e14a52 100644 --- a/winsup/cygwin/tty.cc +++ b/winsup/cygwin/tty.cc @@ -138,7 +138,7 @@ tty_list::terminate (void) i = 0; } - Sleep (200); + low_priority_sleep (200); } termios_printf ("tty %d master about to finish", ttynum); @@ -218,12 +218,12 @@ tty_list::allocate_tty (int with_console) SetConsoleTitle (buf); for (int times = 0; times < 25; times++) { - Sleep (10); + low_priority_sleep (10); if ((console = FindWindow (NULL, buf))) break; } SetConsoleTitle (oldtitle); - Sleep (40); + low_priority_sleep (40); ReleaseMutex (title_mutex); if (console == NULL) { |