Lines Matching refs:future
513 static __always_inline void get_time_in_future(struct timespec *future,
518 clock_gettime_or_die(CLOCK_MONOTONIC, future);
519 future->tv_sec += time_us / USEC_PER_SEC;
520 nsec = future->tv_nsec + (time_us * NSEC_PER_USEC) % NSEC_PER_SEC;
522 future->tv_nsec = nsec % NSEC_PER_SEC;
523 future->tv_sec += 1;
1011 struct timespec future;
1014 get_time_in_future(&future, delay);
1018 cond_timedwait(&printstate.cond, &printstate.mutex, &future);
1019 if (time_has_passed(&future))