* Check to see if we timed out. */
| 615 | * Check to see if we timed out. |
| 616 | */ |
| 617 | static inline int |
| 618 | sleepq_check_timeout(void) |
| 619 | { |
| 620 | struct thread *td; |
| 621 | int res; |
| 622 | |
| 623 | res = 0; |
| 624 | td = curthread; |
| 625 | if (td->td_sleeptimo != 0) { |
| 626 | if (td->td_sleeptimo <= sbinuptime()) |
| 627 | res = EWOULDBLOCK; |
| 628 | td->td_sleeptimo = 0; |
| 629 | } |
| 630 | return (res); |
| 631 | } |
| 632 | |
| 633 | /* |
| 634 | * Check to see if we were awoken by a signal. |
no test coverage detected