Lines Matching refs:time
85 void convertNanosecondsToTimespec(int64_t nanoseconds, struct timespec *time) { in convertNanosecondsToTimespec() argument
86 time->tv_sec = nanoseconds / NANOS_PER_SECOND; in convertNanosecondsToTimespec()
88 time->tv_nsec = nanoseconds - (time->tv_sec * NANOS_PER_SECOND); in convertNanosecondsToTimespec()
93 struct timespec time; variable
94 int result = clock_gettime(clockId, &time);
98 return (time.tv_sec * NANOS_PER_SECOND) + time.tv_nsec;
151 android::status_t futex_wait(void *addr, int current, struct timespec *time) { in futex_wait() argument
153 return sys_futex(addr, FUTEX_WAIT_PRIVATE, current, time, NULL, 0); in futex_wait()
176 struct timespec time; in wait() local
177 convertNanosecondsToTimespec(timeoutNanoseconds, &time); in wait()
178 return futex_wait(&mValue, value, &time); in wait()