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:
@@ -88,7 +88,7 @@ nanosleep (const struct timespec *rqtp, struct timespec *rmtp)
|
||||
DWORD end_time = gtod.dmsecs () + req;
|
||||
syscall_printf ("nanosleep (%ld)", req);
|
||||
|
||||
int rc = pthread::cancelable_wait (signal_arrived, req);
|
||||
int rc = cancelable_wait (signal_arrived, req);
|
||||
DWORD rem;
|
||||
if ((rem = end_time - gtod.dmsecs ()) > HIRES_DELAY_MAX)
|
||||
rem = 0;
|
||||
|
Reference in New Issue
Block a user