Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-11-13 22:36:12 +0300
committerChristopher Faylor <me@cgf.cx>2002-11-13 22:36:12 +0300
commitc0a02a4b42accbc574e84654cd845f8971d6a298 (patch)
tree92e12cd2345ecc26c4f64806e4edea173fc8e99a /winsup/cygwin/fhandler_tty.cc
parente91ec2e3e6fbe82b6b481305a15aec370006baf0 (diff)
* 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_tty.cc')
-rw-r--r--winsup/cygwin/fhandler_tty.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc
index ed1092776..82dae85ed 100644
--- a/winsup/cygwin/fhandler_tty.cc
+++ b/winsup/cygwin/fhandler_tty.cc
@@ -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)