Searched refs:ns (Results 1 - 10 of 10) sorted by relevance

/art/runtime/base/
H A Dtime_utils.h66 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 Dtime_utils.cc89 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 Dmutex.cc618 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 Dmutex.h186 // 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 Djava_lang_Object.cc50 static void Object_waitJI(JNIEnv* env, jobject java_this, jlong ms, jint ns) { argument
53 o->Wait(soa.Self(), ms, ns);
H A Djava_lang_Thread.cc173 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 Dgenerate_java.py371 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 Dmonitor.cc563 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 Dmonitor.h87 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 Dobject-inl.h128 inline void Object::Wait(Thread* self, int64_t ms, int32_t ns) { argument
129 Monitor::Wait(self, this, ms, ns, true, kTimedWaiting);

Completed in 2078 milliseconds