summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/exceptions.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-11-13 19:36:12 +0000
committerChristopher Faylor <me@cgf.cx>2002-11-13 19:36:12 +0000
commitc0a02a4b42accbc574e84654cd845f8971d6a298 (patch)
tree92e12cd2345ecc26c4f64806e4edea173fc8e99a /winsup/cygwin/exceptions.cc
parente91ec2e3e6fbe82b6b481305a15aec370006baf0 (diff)
downloadcygnal-c0a02a4b42accbc574e84654cd845f8971d6a298.tar.gz
cygnal-c0a02a4b42accbc574e84654cd845f8971d6a298.tar.bz2
cygnal-c0a02a4b42accbc574e84654cd845f8971d6a298.zip
* miscfuncs.cc (low_priority_sleep): New function. Use throughout where code
is supposed to be giving up time slice. * fhandler_console.cc (fhandler_console::read): Switch button 2/3 output escape sequences to be consistent with xterm.
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r--winsup/cygwin/exceptions.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc
index 4e18e2791..05f285b2e 100644
--- a/winsup/cygwin/exceptions.cc
+++ b/winsup/cygwin/exceptions.cc
@@ -666,7 +666,7 @@ sigthread::get_winapi_lock (int test)
/* Need to do a busy loop because we can't block or a potential SuspendThread
will hang. */
while (InterlockedExchange (&winapi_lock, 1))
- Sleep (1);
+ low_priority_sleep (1);
return 1;
}
@@ -855,7 +855,7 @@ setup_handler (int sig, void *handler, struct sigaction& siga)
resume_thread:
ResumeThread (hth);
- Sleep (0);
+ low_priority_sleep (0);
continue;
}
@@ -879,7 +879,7 @@ setup_handler (int sig, void *handler, struct sigaction& siga)
pending_signals = 1; /* FIXME: Probably need to be more tricky here */
sig_set_pending (sig);
sig_dispatch_pending (1);
- Sleep (0); /* Hopefully, other process will be waking up soon. */
+ low_priority_sleep (0); /* Hopefully, other process will be waking up soon. */
sigproc_printf ("couldn't send signal %d", sig);
}