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.
This commit is contained in:
@@ -80,7 +80,7 @@ wait4 (int intpid, int *status, int options, struct rusage *r)
|
||||
if ((waitfor = w->ev) == NULL)
|
||||
goto nochildren;
|
||||
|
||||
res = pthread::cancelable_wait (waitfor, INFINITE);
|
||||
res = cancelable_wait (waitfor, INFINITE);
|
||||
|
||||
sigproc_printf ("%d = WaitForSingleObject (...)", res);
|
||||
|
||||
|
Reference in New Issue
Block a user