/art/runtime/base/ |
H A D | time_utils.h | 66 static constexpr inline uint64_t NsToMs(uint64_t ns) { argument 67 return ns / 1000 / 1000; 81 void NanoSleep(uint64_t ns); 83 // Initialize a timespec to either a relative time (ms,ns), or to the absolute 85 void InitTimeSpec(bool absolute, int clock, int64_t ms, int32_t ns, timespec* ts);
|
H A D | time_utils.cc | 89 unit = "ns"; 170 void NanoSleep(uint64_t ns) { argument 172 tm.tv_sec = ns / MsToNs(1000); 173 tm.tv_nsec = ns - static_cast<uint64_t>(tm.tv_sec) * MsToNs(1000); 177 void InitTimeSpec(bool absolute, int clock, int64_t ms, int32_t ns, timespec* ts) { argument 206 ts->tv_nsec = (ts->tv_nsec + (ms % 1000) * 1000000) + ns;
|
H A D | mutex.cc | 618 bool ReaderWriterMutex::ExclusiveLockWithTimeout(Thread* self, int64_t ms, int32_t ns) { argument 623 InitTimeSpec(true, CLOCK_MONOTONIC, ms, ns, &end_abs_ts); 655 InitTimeSpec(true, CLOCK_REALTIME, ms, ns, &ts); 884 bool ConditionVariable::TimedWait(Thread* self, int64_t ms, int32_t ns) { argument 892 InitTimeSpec(false, CLOCK_REALTIME, ms, ns, &rel_ts); 925 InitTimeSpec(true, clock, ms, ns, &ts);
|
H A D | mutex.h | 186 // Sum of time waited by all contenders in ns. 322 bool ExclusiveLockWithTimeout(Thread* self, int64_t ms, int32_t ns) 454 bool TimedWait(Thread* self, int64_t ms, int32_t ns) NO_THREAD_SAFETY_ANALYSIS;
|
/art/runtime/native/ |
H A D | java_lang_Object.cc | 50 static void Object_waitJI(JNIEnv* env, jobject java_this, jlong ms, jint ns) { argument 53 o->Wait(soa.Self(), ms, ns);
|
H A D | java_lang_Thread.cc | 173 static void Thread_sleep(JNIEnv* env, jclass, jobject java_lock, jlong ms, jint ns) { argument 176 Monitor::Wait(Thread::Current(), lock, ms, ns, true, kSleeping); local
|
/art/test/964-default-iface-init-generated/util-src/ |
H A D | generate_java.py | 371 ns = clone_all(supers) 372 selected = sorted(set(dump_tree(ns)) - set(ns))[i] 373 yield TestClass(tuple([selected] + list(ns)))
|
/art/runtime/ |
H A D | monitor.cc | 563 void Monitor::Wait(Thread* self, int64_t ms, int32_t ns, argument 579 if (why == kTimedWaiting && (ms == 0 && ns == 0)) { 584 if (ms < 0 || ns < 0 || ns > 999999) { 587 "timeout arguments out of range: ms=%" PRId64 " ns=%d", ms, ns); 645 self->GetWaitConditionVariable()->TimedWait(self, ms, ns); 993 void Monitor::Wait(Thread* self, mirror::Object *obj, int64_t ms, int32_t ns, argument 1027 mon->Wait(self, ms, ns, interruptShouldThrow, why);
|
H A D | monitor.h | 87 static void Wait(Thread* self, mirror::Object* obj, int64_t ms, int32_t ns, 232 // Checks to make sure that "ns" is in the range 0-999999 (i.e. fractions of a millisecond) and
|
/art/runtime/mirror/ |
H A D | object-inl.h | 128 inline void Object::Wait(Thread* self, int64_t ms, int32_t ns) { argument 129 Monitor::Wait(self, this, ms, ns, true, kTimedWaiting);
|