Home
last modified time | relevance | path

Searched refs:absoluteTime (Results 1 – 6 of 6) sorted by relevance

/external/libnfc-nci/halimpl/bcm2079x/adaptation/
DCondVar.cpp101 struct timespec absoluteTime; in wait() local
103 if (clock_gettime (CLOCK_MONOTONIC, &absoluteTime) == -1) in wait()
109 absoluteTime.tv_sec += millisec / 1000; in wait()
110 long ns = absoluteTime.tv_nsec + ((millisec % 1000) * 1000000); in wait()
113 absoluteTime.tv_sec++; in wait()
114 absoluteTime.tv_nsec = ns - 1000000000; in wait()
117 absoluteTime.tv_nsec = ns; in wait()
124 …aitResult = pthread_cond_timedwait_monotonic_np (&mCondition, mutex.nativeHandle(), &absoluteTime); in wait()
/external/chromium_org/third_party/WebKit/Source/core/workers/
DWorkerRunLoop.cpp186 double absoluteTime = 0.0; in runInMode() local
189absoluteTime = (predicate.isDefaultMode() && m_sharedTimer->isActive()) ? m_sharedTimer->fireTime(… in runInMode()
193 if (m_messageQueue.isEmpty() && absoluteTime > currentTime() + kMinIdleTimespan) { in runInMode()
200 if (absoluteTime > nextWatchdogTime) { in runInMode()
201 absoluteTime = nextWatchdogTime; in runInMode()
207 task = m_messageQueue.waitForMessageFilteredWithTimeout(result, predicate, absoluteTime); in runInMode()
/external/chromium_org/third_party/WebKit/Source/wtf/
DThreadingWin.cpp452 bool ThreadCondition::timedWait(Mutex& mutex, double absoluteTime) in timedWait() argument
454 DWORD interval = absoluteTimeToWaitTimeoutInterval(absoluteTime); in timedWait()
475 DWORD absoluteTimeToWaitTimeoutInterval(double absoluteTime) in absoluteTimeToWaitTimeoutInterval() argument
480 if (absoluteTime < currentTime) in absoluteTimeToWaitTimeoutInterval()
484 if (absoluteTime - currentTime > static_cast<double>(INT_MAX) / 1000.0) in absoluteTimeToWaitTimeoutInterval()
487 return static_cast<DWORD>((absoluteTime - currentTime) * 1000.0); in absoluteTimeToWaitTimeoutInterval()
DThreadingPthreads.cpp353 bool ThreadCondition::timedWait(Mutex& mutex, double absoluteTime) in timedWait() argument
355 if (absoluteTime < currentTime()) in timedWait()
358 if (absoluteTime > INT_MAX) { in timedWait()
363 int timeSeconds = static_cast<int>(absoluteTime); in timedWait()
364 int timeNanoseconds = static_cast<int>((absoluteTime - timeSeconds) * 1E9); in timedWait()
DMessageQueue.h68 …aType> waitForMessageFilteredWithTimeout(MessageQueueWaitResult&, Predicate&, double absoluteTime);
144 …ssageFilteredWithTimeout(MessageQueueWaitResult& result, Predicate& predicate, double absoluteTime) in waitForMessageFilteredWithTimeout() argument
151 timedOut = !m_condition.timedWait(m_mutex, absoluteTime); in waitForMessageFilteredWithTimeout()
153 ASSERT(!timedOut || absoluteTime != infiniteTime()); in waitForMessageFilteredWithTimeout()
DThreadingPrimitives.h118 bool timedWait(Mutex&, double absoluteTime);
129 DWORD absoluteTimeToWaitTimeoutInterval(double absoluteTime);