/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 | 152 static void Thread_sleep(JNIEnv* env, jclass, jobject java_lock, jlong ms, jint ns) { argument 155 Monitor::Wait(Thread::Current(), lock, ms, ns, true, kSleeping); local
|
/art/runtime/ |
H A D | utils.h | 292 static constexpr inline uint64_t NsToMs(uint64_t ns) { argument 293 return ns / 1000 / 1000; 297 static constexpr inline uint64_t MsToNs(uint64_t ns) { argument 298 return ns * 1000 * 1000; 307 void NanoSleep(uint64_t ns); 310 void InitTimeSpec(bool absolute, int clock, int64_t ms, int32_t ns, timespec* ts);
|
H A D | monitor.cc | 379 * Checks to make sure that "ns" is in the range 0-999999 391 void Monitor::Wait(Thread* self, int64_t ms, int32_t ns, argument 405 if (why == kTimedWaiting && (ms == 0 && ns == 0)) { 409 WaitWithLock(self, ms, ns, interruptShouldThrow, why); 412 void Monitor::WaitWithLock(Thread* self, int64_t ms, int32_t ns, argument 415 if (ms < 0 || ns < 0 || ns > 999999) { 418 "timeout arguments out of range: ms=%lld ns=%d", ms, ns); 471 self->wait_cond_->TimedWait(self, ms, ns); 759 Wait(Thread* self, mirror::Object *obj, int64_t ms, int32_t ns, bool interruptShouldThrow, ThreadState why) argument [all...] |
H A D | monitor.h | 86 static void Wait(Thread* self, mirror::Object* obj, int64_t ms, int32_t ns, 141 void WaitWithLock(Thread* self, int64_t ms, int32_t ns, bool interruptShouldThrow, ThreadState why)
|
H A D | utils.cc | 178 void NanoSleep(uint64_t ns) { argument 181 tm.tv_nsec = ns; 185 void InitTimeSpec(bool absolute, int clock, int64_t ms, int32_t ns, timespec* ts) { argument 209 ts->tv_nsec = (ts->tv_nsec + (ms % 1000) * 1000000) + ns; 519 unit = "ns";
|
/art/runtime/mirror/ |
H A D | object-inl.h | 70 inline void Object::Wait(Thread* self, int64_t ms, int32_t ns) { argument 71 Monitor::Wait(self, this, ms, ns, true, kTimedWaiting);
|
/art/runtime/base/ |
H A D | mutex.h | 110 // Sum of time waited by all contenders in ns. 239 bool ExclusiveLockWithTimeout(Thread* self, int64_t ms, int32_t ns) 326 void TimedWait(Thread* self, int64_t ms, int32_t ns) NO_THREAD_SAFETY_ANALYSIS;
|
H A D | mutex.cc | 607 bool ReaderWriterMutex::ExclusiveLockWithTimeout(Thread* self, int64_t ms, int32_t ns) { argument 612 InitTimeSpec(true, CLOCK_REALTIME, ms, ns, &end_abs_ts); 645 InitTimeSpec(true, CLOCK_REALTIME, ms, ns, &ts); 871 void ConditionVariable::TimedWait(Thread* self, int64_t ms, int32_t ns) { argument 878 InitTimeSpec(false, CLOCK_REALTIME, ms, ns, &rel_ts); 910 InitTimeSpec(true, clock, ms, ns, &ts);
|