#include <qabstracteventdispatcher_p.h>
◆ QAbstractEventDispatcherPrivate()
QAbstractEventDispatcherPrivate::QAbstractEventDispatcherPrivate |
( |
| ) |
|
|
inline |
◆ allocateTimerId()
int QAbstractEventDispatcherPrivate::allocateTimerId |
( |
| ) |
|
|
static |
Definition at line 175 of file qabstracteventdispatcher.cpp.
Referenced by QAbstractEventDispatcher::registerTimer().
177 int timerId, newTimerId;
191 if (!
timerIds[bucket].testAndSetRelease(0, b)) {
static QBasicAtomicInt nextFreeTimerId
#define at(className, varName)
static QBasicAtomicPointer< int > timerIds[]
static const int TimerIdMask
bool testAndSetRelaxed(int expectedValue, int newValue)
static int bucketIndex(int bucket, int timerId)
static int * allocateBucket(int bucket)
static int prepareNewValueWithSerialNumber(int oldId, int newId)
static int bucketOffset(int timerId)
◆ init()
void QAbstractEventDispatcherPrivate::init |
( |
| ) |
|
Definition at line 151 of file qabstracteventdispatcher.cpp.
155 qWarning(
"QAbstractEventDispatcher: An event dispatcher has already been created for this thread");
Q_CORE_EXPORT void qWarning(const char *,...)
QAbstractEventDispatcher * eventDispatcher
The QAbstractEventDispatcher class provides an interface to manage Qt's event queue.
◆ releaseTimerId()
void QAbstractEventDispatcherPrivate::releaseTimerId |
( |
int |
id | ) |
|
|
static |
Definition at line 217 of file qabstracteventdispatcher.cpp.
Referenced by QTimerInfoList::unregisterTimer(), QEventDispatcherMac::unregisterTimer(), QEventDispatcherWin32Private::unregisterTimer(), QTimerInfoList::unregisterTimers(), and QEventDispatcherMac::unregisterTimers().
224 Q_ASSERT_X(timerId == -b[at],
"QAbstractEventDispatcher::releaseTimerId",
225 "Internal error: timer ID not found");
227 int freeId, newTimerId;
static QBasicAtomicInt nextFreeTimerId
#define at(className, varName)
static QBasicAtomicPointer< int > timerIds[]
static const int TimerIdMask
#define Q_ASSERT_X(cond, where, what)
bool testAndSetRelease(int expectedValue, int newValue)
static int bucketIndex(int bucket, int timerId)
static int prepareNewValueWithSerialNumber(int oldId, int newId)
static int bucketOffset(int timerId)
◆ event_filter
The documentation for this class was generated from the following files: