Lines Matching refs:time
81 static void convertNanosecondsToTimespec(int64_t nanoseconds, struct timespec *time) {
82 time->tv_sec = nanoseconds / NANOS_PER_SECOND;
84 time->tv_nsec = nanoseconds - (time->tv_sec * NANOS_PER_SECOND);
88 struct timespec time;
89 int result = clock_gettime(clockId, &time);
93 return (time.tv_sec * NANOS_PER_SECOND) + time.tv_nsec;
141 static android::status_t futex_wait(void *addr, int current, struct timespec *time) {
143 return sys_futex(addr, FUTEX_WAIT_PRIVATE, current, time, NULL, 0);
166 struct timespec time;
167 convertNanosecondsToTimespec(timeoutNanoseconds, &time);
168 return futex_wait(&mValue, value, &time);