Home
last modified time | relevance | path

Searched refs:ts (Results 1 – 5 of 5) sorted by relevance

/art/runtime/base/
Dtime_utils.cc176 void InitTimeSpec(bool absolute, int clock, int64_t ms, int32_t ns, timespec* ts) { in InitTimeSpec() argument
181 clock_gettime(clock, ts); in InitTimeSpec()
186 ts->tv_sec = tv.tv_sec; in InitTimeSpec()
187 ts->tv_nsec = tv.tv_usec * 1000; in InitTimeSpec()
190 ts->tv_sec = 0; in InitTimeSpec()
191 ts->tv_nsec = 0; in InitTimeSpec()
193 endSec = ts->tv_sec + ms / 1000; in InitTimeSpec()
199 ts->tv_sec = endSec; in InitTimeSpec()
200 ts->tv_nsec = (ts->tv_nsec + (ms % 1000) * 1000000) + ns; in InitTimeSpec()
203 if (ts->tv_nsec >= 1000000000L) { in InitTimeSpec()
[all …]
Dtime_utils.h85 void InitTimeSpec(bool absolute, int clock, int64_t ms, int32_t ns, timespec* ts);
Dmutex.cc651 timespec ts; in ExclusiveLockWithTimeout() local
652 InitTimeSpec(true, CLOCK_REALTIME, ms, ns, &ts); in ExclusiveLockWithTimeout()
653 int result = pthread_rwlock_timedwrlock(&rwlock_, &ts); in ExclusiveLockWithTimeout()
904 timespec ts; in TimedWait() local
905 InitTimeSpec(true, clock, ms, ns, &ts); in TimedWait()
906 int rc = TEMP_FAILURE_RETRY(pthread_cond_timedwait(&cond_, &guard_.mutex_, &ts)); in TimedWait()
/art/test/004-ThreadStress/src/
DMain.java424 final Main ts = threadStresses[r]; in runTest() local
426 final Main threadStress = ts; in runTest()
431 Thread thread = new Thread(ts, "Worker thread " + id); in runTest()
/art/runtime/
Dthread.h171 static Thread* FromManagedThread(const ScopedObjectAccessAlreadyRunnable& ts,
176 static Thread* FromManagedThread(const ScopedObjectAccessAlreadyRunnable& ts, jobject thread)
310 mirror::String* GetThreadName(const ScopedObjectAccessAlreadyRunnable& ts) const