Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qtimerinfo_unix.cpp File Reference

(f8da484d5741d1191504eefddf5134fd7009e16a)

#include <qelapsedtimer.h>
#include <qcoreapplication.h>
#include "private/qcore_unix_p.h"
#include "private/qtimerinfo_unix_p.h"
#include "private/qobject_p.h"
#include "private/qabstracteventdispatcher_p.h"
#include <sys/times.h>
+ Include dependency graph for qtimerinfo_unix.cpp:

Go to the source code of this file.

Functions

static bool byTimeout (const QTimerInfo *a, const QTimerInfo *b)
 
static constexpr milliseconds roundToMillisecond (nanoseconds val)
 
static constexpr seconds roundToSecs (nanoseconds interval)
 
static void calculateCoarseTimerTimeout (QTimerInfo *t, steady_clock::time_point now)
 
static void calculateNextTimeout (QTimerInfo *t, steady_clock::time_point now)
 

Variables

QT_BEGIN_NAMESPACE Q_CORE_EXPORT bool qt_disable_lowpriority_timers =false
 

Function Documentation

◆ byTimeout()

static bool byTimeout ( const QTimerInfo * a,
const QTimerInfo * b )
static

Definition at line 49 of file qtimerinfo_unix.cpp.

Referenced by QTimerInfoList::activateTimers(), and QTimerInfoList::timerInsert().

+ Here is the caller graph for this function:

◆ calculateCoarseTimerTimeout()

static void calculateCoarseTimerTimeout ( QTimerInfo * t,
steady_clock::time_point now )
static

Definition at line 96 of file qtimerinfo_unix.cpp.

References base, now, Q_ASSERT, qMax(), qMin(), and roundToMillisecond().

Referenced by calculateNextTimeout(), and QTimerInfoList::registerTimer().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ calculateNextTimeout()

static void calculateNextTimeout ( QTimerInfo * t,
steady_clock::time_point now )
static

Definition at line 211 of file qtimerinfo_unix.cpp.

References calculateCoarseTimerTimeout(), Qt::CoarseTimer, now, Qt::PreciseTimer, and Qt::VeryCoarseTimer.

+ Here is the call graph for this function:

◆ roundToMillisecond()

static constexpr milliseconds roundToMillisecond ( nanoseconds val)
staticconstexpr

Definition at line 61 of file qtimerinfo_unix.cpp.

Referenced by calculateCoarseTimerTimeout(), QTimerInfoList::registerTimer(), and QTimerInfoList::timerWait().

+ Here is the caller graph for this function:

◆ roundToSecs()

static constexpr seconds roundToSecs ( nanoseconds interval)
staticconstexpr

Definition at line 77 of file qtimerinfo_unix.cpp.

Referenced by QTimerInfoList::registerTimer().

+ Here is the caller graph for this function:

Variable Documentation

◆ qt_disable_lowpriority_timers

QT_BEGIN_NAMESPACE Q_CORE_EXPORT bool qt_disable_lowpriority_timers =false

Definition at line 21 of file qtimerinfo_unix.cpp.

Referenced by QTimerInfoList::activateTimers().