Searched defs:ns (Results 1 - 7 of 7) sorted by relevance
/art/runtime/native/ |
H A D | java_lang_Object.cc | 52 static void Object_waitJI(JNIEnv* env, jobject java_this, jlong ms, jint ns) { argument 55 o->Wait(soa.Self(), ms, ns);
|
H A D | java_lang_Thread.cc | 165 static void Thread_sleep(JNIEnv* env, jclass, jobject java_lock, jlong ms, jint ns) { argument 168 Monitor::Wait(Thread::Current(), lock, ms, ns, true, kSleeping); local
|
/art/runtime/ |
H A D | utils.h | 385 static constexpr inline uint64_t NsToMs(uint64_t ns) { argument 386 return ns / 1000 / 1000; 390 static constexpr inline uint64_t MsToNs(uint64_t ns) { argument 391 return ns * 1000 * 1000; 400 void NanoSleep(uint64_t ns); 403 void InitTimeSpec(bool absolute, int clock, int64_t ms, int32_t ns, timespec* ts);
|
H A D | monitor.cc | 418 * Checks to make sure that "ns" is in the range 0-999999 430 void Monitor::Wait(Thread* self, int64_t ms, int32_t ns, argument 446 if (why == kTimedWaiting && (ms == 0 && ns == 0)) { 451 if (ms < 0 || ns < 0 || ns > 999999) { 455 "timeout arguments out of range: ms=%" PRId64 " ns=%d", ms, ns); 510 self->GetWaitConditionVariable()->TimedWait(self, ms, ns); 833 void Monitor::Wait(Thread* self, mirror::Object *obj, int64_t ms, int32_t ns, argument 867 mon->Wait(self, ms, ns, interruptShouldThro [all...] |
H A D | utils.cc | 188 void NanoSleep(uint64_t ns) { argument 191 tm.tv_nsec = ns; 195 void InitTimeSpec(bool absolute, int clock, int64_t ms, int32_t ns, timespec* ts) { argument 219 ts->tv_nsec = (ts->tv_nsec + (ms % 1000) * 1000000) + ns; 534 unit = "ns";
|
/art/runtime/mirror/ |
H A D | object-inl.h | 113 inline void Object::Wait(Thread* self, int64_t ms, int32_t ns) { argument 114 Monitor::Wait(self, this, ms, ns, true, kTimedWaiting);
|
/art/runtime/base/ |
H A D | mutex.cc | 553 bool ReaderWriterMutex::ExclusiveLockWithTimeout(Thread* self, int64_t ms, int32_t ns) { argument 558 InitTimeSpec(true, CLOCK_REALTIME, ms, ns, &end_abs_ts); 590 InitTimeSpec(true, CLOCK_REALTIME, ms, ns, &ts); 782 void ConditionVariable::TimedWait(Thread* self, int64_t ms, int32_t ns) { argument 789 InitTimeSpec(false, CLOCK_REALTIME, ms, ns, &rel_ts); 821 InitTimeSpec(true, clock, ms, ns, &ts);
|
Completed in 1718 milliseconds