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/fhandler_serial.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/fhandler_serial.cc')
-rw-r--r-- | winsup/cygwin/fhandler_serial.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_serial.cc b/winsup/cygwin/fhandler_serial.cc index fd7abb808..3c951801b 100644 --- a/winsup/cygwin/fhandler_serial.cc +++ b/winsup/cygwin/fhandler_serial.cc @@ -508,7 +508,7 @@ fhandler_serial::tcflush (int queue) COMSTAT st; if (!PurgeComm (get_handle (), PURGE_RXABORT | PURGE_RXCLEAR)) break; - Sleep (100); + low_priority_sleep (100); if (!ClearCommError (get_handle (), &ev, &st) || !st.cbInQue) break; } |