| 493 | } |
| 494 | |
| 495 | static unsigned long long _pthread_rel_time_in_ms(const struct timespec *ts) |
| 496 | { |
| 497 | unsigned long long t1 = _pthread_time_in_ms_from_timespec(ts); |
| 498 | unsigned long long t2 = _pthread_time_in_ms(); |
| 499 | |
| 500 | /* Prevent underflow */ |
| 501 | if (t1 < t2) return 0; |
| 502 | return t1 - t2; |
| 503 | } |
| 504 | |
| 505 | static int pthread_rwlock_timedrdlock(pthread_rwlock_t *l, const struct timespec *ts) |
| 506 | { |
no test coverage detected