/art/test/053-wait-some/ |
D | expected.txt | 2 Waiting for 200ms... 3 Waiting for 500ms... 4 Waiting for 1000ms... 5 Waiting for 2000ms... 6 Waiting for 3500ms... 7 Waiting for 8000ms...
|
/art/test/030-bad-finalizer/src/ |
D | Main.java | 37 public static void snooze(int ms) { in snooze() argument 39 Thread.sleep(ms); in snooze()
|
/art/test/109-suspend-check/src/ |
D | Main.java | 42 public static void sleep(int ms) { in sleep() argument 44 Thread.sleep(ms); in sleep()
|
/art/test/079-phantom/src/ |
D | Main.java | 20 public static void sleep(int ms) { in sleep() argument 22 Thread.sleep(ms); in sleep()
|
/art/runtime/native/ |
D | java_lang_Object.cc | 52 static void Object_waitJI(JNIEnv* env, jobject java_this, jlong ms, jint ns) { in Object_waitJI() argument 55 o->Wait(soa.Self(), ms, ns); in Object_waitJI()
|
D | java_lang_Thread.cc | 165 static void Thread_sleep(JNIEnv* env, jclass, jobject java_lock, jlong ms, jint ns) { in Thread_sleep() argument 168 Monitor::Wait(Thread::Current(), lock, ms, ns, true, kSleeping); in Thread_sleep()
|
/art/test/036-finalizer/src/ |
D | Main.java | 28 private static void snooze(int ms) { in snooze() argument 30 Thread.sleep(ms); in snooze()
|
/art/test/074-gc-thrash/src/ |
D | Main.java | 137 public static void sleep(int ms) { in sleep() argument 139 Thread.sleep(ms); in sleep()
|
/art/runtime/ |
D | monitor.cc | 430 void Monitor::Wait(Thread* self, int64_t ms, int32_t ns, in Wait() argument 446 if (why == kTimedWaiting && (ms == 0 && ns == 0)) { in Wait() 451 if (ms < 0 || ns < 0 || ns > 999999) { in Wait() 455 "timeout arguments out of range: ms=%" PRId64 " ns=%d", ms, ns); in Wait() 510 self->GetWaitConditionVariable()->TimedWait(self, ms, ns); in Wait() 833 void Monitor::Wait(Thread* self, mirror::Object *obj, int64_t ms, int32_t ns, in Wait() argument 867 mon->Wait(self, ms, ns, interruptShouldThrow, why); in Wait()
|
D | monitor.h | 78 static void Wait(Thread* self, mirror::Object* obj, int64_t ms, int32_t ns,
|
D | utils.cc | 195 void InitTimeSpec(bool absolute, int clock, int64_t ms, int32_t ns, timespec* ts) { in InitTimeSpec() argument 212 endSec = ts->tv_sec + ms / 1000; in InitTimeSpec() 219 ts->tv_nsec = (ts->tv_nsec + (ms % 1000) * 1000000) + ns; in InitTimeSpec()
|
D | utils.h | 445 void InitTimeSpec(bool absolute, int clock, int64_t ms, int32_t ns, timespec* ts);
|
/art/runtime/base/ |
D | mutex.cc | 561 bool ReaderWriterMutex::ExclusiveLockWithTimeout(Thread* self, int64_t ms, int32_t ns) { in ExclusiveLockWithTimeout() argument 566 InitTimeSpec(true, CLOCK_MONOTONIC, ms, ns, &end_abs_ts); in ExclusiveLockWithTimeout() 598 InitTimeSpec(true, CLOCK_REALTIME, ms, ns, &ts); in ExclusiveLockWithTimeout() 796 void ConditionVariable::TimedWait(Thread* self, int64_t ms, int32_t ns) { in TimedWait() argument 803 InitTimeSpec(false, CLOCK_REALTIME, ms, ns, &rel_ts); in TimedWait() 835 InitTimeSpec(true, clock, ms, ns, &ts); in TimedWait()
|
D | mutex.h | 302 bool ExclusiveLockWithTimeout(Thread* self, int64_t ms, int32_t ns) 391 void TimedWait(Thread* self, int64_t ms, int32_t ns) NO_THREAD_SAFETY_ANALYSIS;
|
/art/runtime/mirror/ |
D | object-inl.h | 113 inline void Object::Wait(Thread* self, int64_t ms, int32_t ns) { in Wait() argument 114 Monitor::Wait(self, this, ms, ns, true, kTimedWaiting); in Wait()
|