* 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.
This commit is contained in:
Christopher Faylor
2013-06-08 14:38:20 +00:00
parent ebf488e1ab
commit 5d35299e51
5 changed files with 35 additions and 39 deletions

View File

@@ -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);
}