diff options
author | Christopher Faylor <me@cgf.cx> | 2010-03-13 02:13:48 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2010-03-13 02:13:48 +0300 |
commit | 084ea5108e86738a09288268b186541b0c23920a (patch) | |
tree | 93ad21c3c750fe12e7792ff8679b87888992dc3d /winsup/cygwin/fhandler_fifo.cc | |
parent | 36960dec3721fccc8eb931787a2656cf715bfc39 (diff) |
Throughout change all calls of low_priority_sleep (0) to yield ().
* miscfuncs.cc (yield): Rename from low_priority_sleep. Remove all of the
logic which called Sleep() and just use SwitchToThread.
* miscfuncs.h (yield): Rename from low_priority_sleep.
(SLEEP_0_STAY_LOW): Delete unused define.
* shared.cc (memory_init): Move heap_init() call directly after shared memory
initialization to more closely mimic long-standing program flow.
* tty.cc (tty_list::terminate): Replace call to low_priority_sleep with Sleep.
Diffstat (limited to 'winsup/cygwin/fhandler_fifo.cc')
-rw-r--r-- | winsup/cygwin/fhandler_fifo.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_fifo.cc b/winsup/cygwin/fhandler_fifo.cc index d24c73143..b4a78d422 100644 --- a/winsup/cygwin/fhandler_fifo.cc +++ b/winsup/cygwin/fhandler_fifo.cc @@ -46,7 +46,7 @@ fhandler_fifo::open_nonserver (const char *npname, unsigned low_flags, if (h != INVALID_HANDLE_VALUE || GetLastError () != ERROR_PIPE_NOT_CONNECTED) return h; if (&_my_tls != _main_tls) - low_priority_sleep (0); + yield (); else if (WaitForSingleObject (signal_arrived, 0) == WAIT_OBJECT_0) { set_errno (EINTR); |