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/autoload.cc | |
parent | e91ec2e3e6fbe82b6b481305a15aec370006baf0 (diff) | |
download | newlib-c0a02a4b42accbc574e84654cd845f8971d6a298.zip newlib-c0a02a4b42accbc574e84654cd845f8971d6a298.tar.gz newlib-c0a02a4b42accbc574e84654cd845f8971d6a298.tar.bz2 |
* 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/autoload.cc')
-rw-r--r-- | winsup/cygwin/autoload.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc index 0b66278..5210623 100644 --- a/winsup/cygwin/autoload.cc +++ b/winsup/cygwin/autoload.cc @@ -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)) |