Lines Matching refs:pTimer
52 sal_Bool SAL_CALL registerTimer(vos::OTimer* pTimer);
55 sal_Bool SAL_CALL unregisterTimer(vos::OTimer* pTimer);
58 sal_Bool SAL_CALL lookupTimer(const vos::OTimer* pTimer);
189 sal_Bool OTimer::expiresBefore(const OTimer* pTimer) const in expiresBefore()
191 VOS_ASSERT(pTimer); in expiresBefore()
193 if ( pTimer != 0 ) in expiresBefore()
195 return m_Expired < pTimer->m_Expired; in expiresBefore()
308 sal_Bool OTimerManager::registerTimer(OTimer* pTimer) in registerTimer() argument
310 VOS_ASSERT(pTimer); in registerTimer()
312 if ( pTimer == 0 ) in registerTimer()
324 if (pTimer->expiresBefore(*ppIter)) in registerTimer()
335 pTimer->m_pNext= *ppIter; in registerTimer()
336 *ppIter = pTimer; in registerTimer()
339 if (pTimer == m_pHead) in registerTimer()
349 sal_Bool OTimerManager::unregisterTimer(OTimer* pTimer) in unregisterTimer() argument
351 VOS_ASSERT(pTimer); in unregisterTimer()
353 if ( pTimer == 0 ) in unregisterTimer()
365 if (pTimer == (*ppIter)) in unregisterTimer()
377 sal_Bool OTimerManager::lookupTimer(const OTimer* pTimer) in lookupTimer() argument
379 VOS_ASSERT(pTimer); in lookupTimer()
381 if ( pTimer == 0 ) in lookupTimer()
392 if (pIter == pTimer) in lookupTimer()
412 OTimer* pTimer = m_pHead; in checkForTimeout() local
414 if (pTimer->isExpired()) in checkForTimeout()
417 m_pHead = pTimer->m_pNext; in checkForTimeout()
419 pTimer->acquire(); in checkForTimeout()
423 pTimer->onShot(); in checkForTimeout()
426 if ( ! pTimer->m_RepeatDelta.isEmpty() ) in checkForTimeout()
432 Now.Seconds += pTimer->m_RepeatDelta.Seconds; in checkForTimeout()
433 Now.Nanosec += pTimer->m_RepeatDelta.Nanosec; in checkForTimeout()
435 pTimer->m_Expired = Now; in checkForTimeout()
437 registerTimer(pTimer); in checkForTimeout()
439 pTimer->release(); in checkForTimeout()