Searched refs:ts (Results 1 – 5 of 5) sorted by relevance
/art/runtime/base/ |
D | time_utils.cc | 177 void InitTimeSpec(bool absolute, int clock, int64_t ms, int32_t ns, timespec* ts) { in InitTimeSpec() argument 180 clock_gettime(clock, ts); in InitTimeSpec() 185 ts->tv_sec = tv.tv_sec; in InitTimeSpec() 186 ts->tv_nsec = tv.tv_usec * 1000; in InitTimeSpec() 189 ts->tv_sec = 0; in InitTimeSpec() 190 ts->tv_nsec = 0; in InitTimeSpec() 193 int64_t end_sec = ts->tv_sec + ms / 1000; in InitTimeSpec() 205 ts->tv_sec = end_sec; in InitTimeSpec() 206 ts->tv_nsec = (ts->tv_nsec + (ms % 1000) * 1000000) + ns; in InitTimeSpec() 209 if (ts->tv_nsec >= 1000000000L) { in InitTimeSpec() [all …]
|
D | time_utils.h | 85 void InitTimeSpec(bool absolute, int clock, int64_t ms, int32_t ns, timespec* ts);
|
D | mutex.cc | 654 timespec ts; in ExclusiveLockWithTimeout() local 655 InitTimeSpec(true, CLOCK_REALTIME, ms, ns, &ts); in ExclusiveLockWithTimeout() 656 int result = pthread_rwlock_timedwrlock(&rwlock_, &ts); in ExclusiveLockWithTimeout() 924 timespec ts; in TimedWait() local 925 InitTimeSpec(true, clock, ms, ns, &ts); in TimedWait() 926 int rc = TEMP_FAILURE_RETRY(pthread_cond_timedwait(&cond_, &guard_.mutex_, &ts)); in TimedWait()
|
/art/test/004-ThreadStress/src/ |
D | Main.java | 469 final Main ts = threadStresses[r]; in runTest() 471 final Main threadStress = ts; in runTest() 477 Thread thread = new Thread(ts, "Worker thread " + id); in runTest()
|
/art/runtime/ |
D | thread.h | 174 static Thread* FromManagedThread(const ScopedObjectAccessAlreadyRunnable& ts, 178 static Thread* FromManagedThread(const ScopedObjectAccessAlreadyRunnable& ts, jobject thread) 325 mirror::String* GetThreadName(const ScopedObjectAccessAlreadyRunnable& ts) const
|