Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2013-06-08 18:38:20 +0400
committerChristopher Faylor <me@cgf.cx>2013-06-08 18:38:20 +0400
commit5d35299e5102d92a995cf5aabd0fafa5b96a2c90 (patch)
tree56ada404b775552c88ade4f86a1a2349bd8a3310 /winsup/cygwin/miscfuncs.cc
parentebf488e1abc9737ae4aca292509f5824aa00080a (diff)
* cygwait.cc (cygwait): Remove lock around sig retrieval since this code is
essentially guarded by thread-specific signal_arrived. * exceptions.cc (_cygtls::handle_SIGCONT): Simplify. Eliminate lock/unlock since code is guarded by signal_arrived.
Diffstat (limited to 'winsup/cygwin/miscfuncs.cc')
-rw-r--r--winsup/cygwin/miscfuncs.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/winsup/cygwin/miscfuncs.cc b/winsup/cygwin/miscfuncs.cc
index d0748ea6c..c2b405eed 100644
--- a/winsup/cygwin/miscfuncs.cc
+++ b/winsup/cygwin/miscfuncs.cc
@@ -251,10 +251,8 @@ yield ()
/* MSDN implies that SleepEx will force scheduling of other threads.
Unlike SwitchToThread() the documentation does not mention other
cpus so, presumably (hah!), this + using a lower priority will
- stall this thread temporarily and cause another to run.
- Note: Don't use 0 timeout. This takes a lot of CPU if something
- goes wrong. */
- SleepEx (1L, false);
+ stall this thread temporarily and cause another to run. */
+ SleepEx (0L, false);
}
SetThreadPriority (GetCurrentThread (), prio);
}