/art/runtime/base/ |
H A D | time_utils.h | 37 // e.g. "1ms", "1.000000001s", "1.001us" 71 static constexpr inline uint64_t MsToNs(uint64_t ms) { argument 72 return ms * 1000 * 1000; 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 D | time_utils.cc | 83 unit = "ms"; 177 void InitTimeSpec(bool absolute, int clock, int64_t ms, int32_t ns, timespec* ts) { argument 193 int64_t end_sec = ts->tv_sec + ms / 1000; 196 // Either ms was intended to denote an infinite timeout, or we have a 200 if (ms != int64_max && ms != int64_max / (1000 * 1000)) { 206 ts->tv_nsec = (ts->tv_nsec + (ms % 1000) * 1000000) + ns;
|
H A D | mutex.cc | 618 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 D | mutex.h | 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/test/030-bad-finalizer/src/ |
H A D | Main.java | 37 public static void snooze(int ms) { argument 39 Thread.sleep(ms);
|
/art/test/079-phantom/src/ |
H A D | Main.java | 20 public static void sleep(int ms) { argument 22 Thread.sleep(ms);
|
/art/runtime/native/ |
H A D | java_lang_Object.cc | 50 static void Object_waitJI(JNIEnv* env, jobject java_this, jlong ms, jint ns) { argument 53 o->Wait(soa.Self(), ms, ns);
|
H A D | java_lang_Thread.cc | 173 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/109-suspend-check/src/ |
H A D | Main.java | 54 public static void sleep(int ms) { argument 56 Thread.sleep(ms);
|
/art/test/036-finalizer/src/ |
H A D | Main.java | 28 private static void snooze(int ms) { argument 30 Thread.sleep(ms);
|
/art/test/444-checker-nce/src/ |
H A D | Main.java | 56 Main[] ms = new Main[1]; 57 return ms[0];
|
/art/test/074-gc-thrash/src/ |
H A D | Main.java | 135 * Sleeps for the "ms" milliseconds. 137 public static void sleep(int ms) { argument 139 Thread.sleep(ms);
|
/art/runtime/ |
H A D | monitor.cc | 563 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 D | monitor.h | 87 static void Wait(Thread* self, mirror::Object* obj, int64_t ms, int32_t ns,
|
/art/runtime/mirror/ |
H A D | object-inl.h | 128 inline void Object::Wait(Thread* self, int64_t ms, int32_t ns) { argument 129 Monitor::Wait(self, this, ms, ns, true, kTimedWaiting);
|