MCPcopy Create free account
hub / github.com/Hamlib/Hamlib / _pthread_rel_time_in_ms

Function _pthread_rel_time_in_ms

include/hamlib/winpthreads.h:495–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493}
494
495static 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
505static int pthread_rwlock_timedrdlock(pthread_rwlock_t *l, const struct timespec *ts)
506{

Callers 1

pthread_cond_timedwaitFunction · 0.85

Calls 2

_pthread_time_in_msFunction · 0.85

Tested by

no test coverage detected