diff options
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 eb16961c9..f5bdadeee 100644 --- a/winsup/cygwin/autoload.cc +++ b/winsup/cygwin/autoload.cc @@ -216,7 +216,7 @@ std_dll_init () do { InterlockedDecrement (&dll->here); - low_priority_sleep (0); + yield (); } while (InterlockedIncrement (&dll->here)); else if (!dll->handle) @@ -259,7 +259,7 @@ wsock_init () while (InterlockedIncrement (&here)) { InterlockedDecrement (&here); - low_priority_sleep (0); + yield (); } if (!wsock_started) |