Lines Matching refs:time
111 void convertNanosecondsToTimespec(int64_t nanoseconds, struct timespec *time) { in convertNanosecondsToTimespec() argument
112 time->tv_sec = nanoseconds / NANOS_PER_SECOND; in convertNanosecondsToTimespec()
114 time->tv_nsec = nanoseconds - (time->tv_sec * NANOS_PER_SECOND); in convertNanosecondsToTimespec()
119 struct timespec time; variable
120 int result = clock_gettime(clockId, &time);
124 return (time.tv_sec * NANOS_PER_SECOND) + time.tv_nsec;
177 android::status_t futex_wait(void *addr, int current, struct timespec *time) { in futex_wait() argument
179 return sys_futex(addr, FUTEX_WAIT_PRIVATE, current, time, NULL, 0); in futex_wait()
202 struct timespec time; in wait() local
203 convertNanosecondsToTimespec(timeoutNanoseconds, &time); in wait()
204 return futex_wait(&mValue, value, &time); in wait()