From c0a02a4b42accbc574e84654cd845f8971d6a298 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 13 Nov 2002 19:36:12 +0000 Subject: * 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. --- winsup/cygwin/autoload.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/autoload.cc') diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc index 0b66278f6..5210623a0 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)) -- cgit v1.2.3