![]() |
Qt 6.x
The Qt SDK
|
#include <qtimerinfo_unix_p.h>
Public Attributes | |
std::chrono::steady_clock::time_point | currentTime |
Additional Inherited Members | |
![]() | |
using | Type = QTimerInfo * |
using | value_type = QTimerInfo * |
using | pointer = QTimerInfo * * |
using | const_pointer = const QTimerInfo * * |
using | reference = QTimerInfo * & |
using | const_reference = const QTimerInfo * & |
using | size_type = qsizetype |
using | difference_type = qptrdiff |
using | parameter_type = typename DataPointer::parameter_type |
using | rvalue_ref = typename std::conditional< DataPointer::pass_parameter_by_value, DisableRValueRefs, QTimerInfo * && >::type |
using | Iterator = iterator |
using | ConstIterator = const_iterator |
using | reverse_iterator = std::reverse_iterator< iterator > |
using | const_reverse_iterator = std::reverse_iterator< const_iterator > |
![]() | |
static QList< QTimerInfo * > | fromList (const QList< QTimerInfo * > &list) noexcept |
static QList< QTimerInfo * > | fromVector (const QList< QTimerInfo * > &vector) noexcept |
static QList< QTimerInfo * > | fromReadOnlyData (const QTimerInfo *(&t)[N]) noexcept |
![]() | |
using | Self = QList< T > |
![]() | |
~QListSpecialMethods ()=default | |
![]() | |
~QListSpecialMethodsBase ()=default | |
Self * | self () |
const Self * | self () const |
Definition at line 37 of file qtimerinfo_unix_p.h.
|
default |
int QTimerInfoList::activateTimers | ( | ) |
Definition at line 388 of file qtimerinfo_unix.cpp.
References QTimerInfo::activateRef, calculateNextTimeout(), QList< QTimerInfo * >::cbegin(), QList< QTimerInfo * >::cend(), QList< QTimerInfo * >::constFirst(), e, QTimerInfo::id, QTimerInfo::interval, QList< QTimerInfo * >::isEmpty(), it, now, QTimerInfo::obj, qt_disable_lowpriority_timers, QList< QTimerInfo * >::removeFirst(), QCoreApplication::sendEvent(), and timerInsert().
Referenced by QEventDispatcherUNIXPrivate::activateTimers(), QCocoaEventDispatcherPrivate::processTimers(), and timerSourceDispatch().
|
inline |
Definition at line 63 of file qtimerinfo_unix_p.h.
References QList< T >::cbegin(), and QList< T >::cend().
Referenced by remainingDuration(), and unregisterTimer().
bool QTimerInfoList::hasPendingTimers | ( | ) |
Updates the currentTime member to the current time, and returns true
if the first timer's timeout is in the future (after currentTime).
The list is sorted by timeout, thus it's enough to check the first timer only.
Definition at line 42 of file qtimerinfo_unix.cpp.
References QList< QTimerInfo * >::constFirst(), QList< QTimerInfo * >::isEmpty(), and QTimerInfo::timeout.
QList< QAbstractEventDispatcher::TimerInfo > QTimerInfoList::registeredTimers | ( | QObject * | object | ) | const |
Definition at line 375 of file qtimerinfo_unix.cpp.
References QList< T >::emplaceBack(), and list.
Referenced by QEventDispatcherWasm::registeredTimers().
void QTimerInfoList::registerTimer | ( | int | timerId, |
qint64 | interval, | ||
Qt::TimerType | timerType, | ||
QObject * | object | ||
) |
Definition at line 283 of file qtimerinfo_unix.cpp.
References registerTimer().
Referenced by registerTimer(), and QEventDispatcherWasm::registerTimer().
void QTimerInfoList::registerTimer | ( | int | timerId, |
std::chrono::milliseconds | interval, | ||
Qt::TimerType | timerType, | ||
QObject * | object | ||
) |
milliseconds QTimerInfoList::remainingDuration | ( | int | timerId | ) |
Definition at line 265 of file qtimerinfo_unix.cpp.
References QList< QTimerInfo * >::cend(), findTimerById(), it, now, qWarning, and roundToMillisecond().
Referenced by timerRemainingTime().
void QTimerInfoList::timerInsert | ( | QTimerInfo * | ti | ) |
Definition at line 52 of file qtimerinfo_unix.cpp.
References at, QList< QTimerInfo * >::insert(), QList< QTimerInfo * >::size(), and QTimerInfo::timeout.
Referenced by activateTimers().
qint64 QTimerInfoList::timerRemainingTime | ( | int | timerId | ) |
Definition at line 260 of file qtimerinfo_unix.cpp.
References remainingDuration().
Referenced by QEventDispatcherWasm::remainingTime().
bool QTimerInfoList::timerWait | ( | timespec & | tm | ) |
Definition at line 235 of file qtimerinfo_unix.cpp.
References QList< QTimerInfo * >::cbegin(), QList< QTimerInfo * >::cend(), durationToTimespec(), it, now, and roundToMillisecond().
Referenced by QCocoaEventDispatcherPrivate::maybeStartCFRunLoopTimer().
bool QTimerInfoList::unregisterTimer | ( | int | timerId | ) |
Definition at line 337 of file qtimerinfo_unix.cpp.
References QList< QTimerInfo * >::cend(), QList< QTimerInfo * >::erase(), findTimerById(), and it.
Referenced by QEventDispatcherWasm::unregisterTimer().
bool QTimerInfoList::unregisterTimers | ( | QObject * | object | ) |
Definition at line 354 of file qtimerinfo_unix.cpp.
References at, i, QList< QTimerInfo * >::isEmpty(), QList< QTimerInfo * >::removeAt(), and QList< QTimerInfo * >::size().
Referenced by QEventDispatcherWasm::unregisterTimers().
std::chrono::steady_clock::time_point QTimerInfoList::currentTime |
Definition at line 45 of file qtimerinfo_unix_p.h.