diff options
author | Christopher Faylor <me@cgf.cx> | 2005-06-09 05:11:51 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-06-09 05:11:51 +0000 |
commit | ed364fa9fbf461ef2f1b17ba17f210dd1066f6b3 (patch) | |
tree | b058e5fd170aa4685c383e35001c9251d5610dce /winsup/cygwin/exceptions.cc | |
parent | a63c42932ecf41c1141789282838407329524e2c (diff) | |
download | cygnal-ed364fa9fbf461ef2f1b17ba17f210dd1066f6b3.tar.gz cygnal-ed364fa9fbf461ef2f1b17ba17f210dd1066f6b3.tar.bz2 cygnal-ed364fa9fbf461ef2f1b17ba17f210dd1066f6b3.zip |
Change pthread::cancelable_wait to just cancelable_wait, throughout.
* thread.h (cw_sig_wait): New enum.
(fast_mutex::lock): Use cancelable_wait with resumable signal.
(cancelable_wait): Change fourth argument to cw_sig_wait enum.
* thread.cc (cancelable_wait): Ditto. Loop on signal detection if fourth
argument == cw_sig_resume.
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r-- | winsup/cygwin/exceptions.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index b886e3460..6e44b5b21 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -574,7 +574,7 @@ handle_sigsuspend (sigset_t tempmask) sigproc_printf ("oldmask %p, newmask %p", oldmask, tempmask); pthread_testcancel (); - pthread::cancelable_wait (signal_arrived, INFINITE); + cancelable_wait (signal_arrived, INFINITE); set_sig_errno (EINTR); // Per POSIX |