You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `dispatch_sema4_timedwait` would reset the `_timeout` to an absolute
time after the sleep was interrupted instead of when the sleep was
called. Interrupting the process while it was sleeping would result in
the new absolute timeout deadline being computed using the `timeout`
offset from the time of the interrupt. e.g. if the timeout is 10
seconds, it will be ten seconds from when the process was interrupted
because the absolute deadline was recomputed. Interrupting the process
repeatedly while sleeping would will make the process go back to sleep
instead of waking up when the original absolute deadline was reached.
`timeout` is a relative timeout offset. `nsec` and `_timeout` are
absolute times since the epoch specifying when the wait should stop.
0 commit comments