Home
last modified time | relevance | path

Searched refs:ns (Results 1 – 9 of 9) sorted by relevance

/art/runtime/base/
Dtime_utils.h66 static constexpr inline uint64_t NsToMs(uint64_t ns) { in NsToMs() argument
67 return ns / 1000 / 1000; in NsToMs()
81 void NanoSleep(uint64_t ns);
85 void InitTimeSpec(bool absolute, int clock, int64_t ms, int32_t ns, timespec* ts);
Dtime_utils.cc169 void NanoSleep(uint64_t ns) { in NanoSleep() argument
171 tm.tv_sec = ns / MsToNs(1000); in NanoSleep()
172 tm.tv_nsec = ns - static_cast<uint64_t>(tm.tv_sec) * MsToNs(1000); in NanoSleep()
176 void InitTimeSpec(bool absolute, int clock, int64_t ms, int32_t ns, timespec* ts) { in InitTimeSpec() argument
200 ts->tv_nsec = (ts->tv_nsec + (ms % 1000) * 1000000) + ns; in InitTimeSpec()
Dmutex.cc615 bool ReaderWriterMutex::ExclusiveLockWithTimeout(Thread* self, int64_t ms, int32_t ns) { in ExclusiveLockWithTimeout() argument
620 InitTimeSpec(true, CLOCK_MONOTONIC, ms, ns, &end_abs_ts); in ExclusiveLockWithTimeout()
652 InitTimeSpec(true, CLOCK_REALTIME, ms, ns, &ts); in ExclusiveLockWithTimeout()
864 bool ConditionVariable::TimedWait(Thread* self, int64_t ms, int32_t ns) { in TimedWait() argument
872 InitTimeSpec(false, CLOCK_REALTIME, ms, ns, &rel_ts); in TimedWait()
905 InitTimeSpec(true, clock, ms, ns, &ts); in TimedWait()
Dmutex.h308 bool ExclusiveLockWithTimeout(Thread* self, int64_t ms, int32_t ns)
400 bool TimedWait(Thread* self, int64_t ms, int32_t ns) NO_THREAD_SAFETY_ANALYSIS;
/art/runtime/native/
Djava_lang_Object.cc54 static void Object_waitJI(JNIEnv* env, jobject java_this, jlong ms, jint ns) { in Object_waitJI() argument
57 o->Wait(soa.Self(), ms, ns); in Object_waitJI()
Djava_lang_Thread.cc163 static void Thread_sleep(JNIEnv* env, jclass, jobject java_lock, jlong ms, jint ns) { in Thread_sleep() argument
166 Monitor::Wait(Thread::Current(), lock, ms, ns, true, kSleeping); in Thread_sleep()
/art/runtime/
Dmonitor.cc409 void Monitor::Wait(Thread* self, int64_t ms, int32_t ns, in Wait() argument
425 if (why == kTimedWaiting && (ms == 0 && ns == 0)) { in Wait()
430 if (ms < 0 || ns < 0 || ns > 999999) { in Wait()
433 "timeout arguments out of range: ms=%" PRId64 " ns=%d", ms, ns); in Wait()
488 self->GetWaitConditionVariable()->TimedWait(self, ms, ns); in Wait()
835 void Monitor::Wait(Thread* self, mirror::Object *obj, int64_t ms, int32_t ns, in Wait() argument
869 mon->Wait(self, ms, ns, interruptShouldThrow, why); in Wait()
Dmonitor.h82 static void Wait(Thread* self, mirror::Object* obj, int64_t ms, int32_t ns,
/art/runtime/mirror/
Dobject-inl.h115 inline void Object::Wait(Thread* self, int64_t ms, int32_t ns) { in Wait() argument
116 Monitor::Wait(self, this, ms, ns, true, kTimedWaiting); in Wait()