summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/autoload.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/autoload.cc')
-rw-r--r--winsup/cygwin/autoload.cc4
1 files changed, 2 insertions, 2 deletions
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))