Qt 4.8
|
#include "qabstracteventdispatcher.h"
#include "qabstracteventdispatcher_p.h"
#include "qthread.h"
#include <private/qthread_p.h>
#include <private/qcoreapplication_p.h>
Go to the source code of this file.
Macros | |
#define | q_static_assert(expr) (void)QStaticAssertType<expr>::Value |
Enumerations | |
enum | { FirstBucketOffset = 0, SecondBucketOffset = sizeof(FirstBucket) / sizeof(FirstBucket[0]), ThirdBucketOffset = 0x100, FourthBucketOffset = 0x1000, FifthBucketOffset = 0x10000, SixthBucketOffset = 0x100000 } |
enum | { FirstBucketSize = SecondBucketOffset, SecondBucketSize = ThirdBucketOffset - SecondBucketOffset, ThirdBucketSize = FourthBucketOffset - ThirdBucketOffset, FourthBucketSize = FifthBucketOffset - FourthBucketOffset, FifthBucketSize = SixthBucketOffset - FifthBucketOffset, SixthBucketSize = MaxTimerId - SixthBucketOffset } |
enum | { NumberOfBuckets = sizeof(BucketSize) / sizeof(BucketSize[0]) } |
Functions | |
static int * | allocateBucket (int bucket) |
static int | bucketIndex (int bucket, int timerId) |
static int | bucketOffset (int timerId) |
static int | prepareNewValueWithSerialNumber (int oldId, int newId) |
static void | timerIdsDestructorFunction () |
Variables | |
static const int | BucketOffset [] |
static const int | BucketSize [] |
static int | FirstBucket [] |
static const int | MaxTimerId = TimerIdMask |
static QBasicAtomicInt | nextFreeTimerId = Q_BASIC_ATOMIC_INITIALIZER(1) |
static const int | TimerIdMask = 0x00ffffff |
static QBasicAtomicPointer< int > | timerIds [] |
static const int | TimerSerialCounter = TimerIdMask + 1 |
static const int | TimerSerialMask = ~TimerIdMask & ~0x80000000 |
#define q_static_assert | ( | expr | ) | (void)QStaticAssertType<expr>::Value |
Definition at line 119 of file qabstracteventdispatcher.cpp.
Referenced by bucketOffset().
anonymous enum |
Enumerator | |
---|---|
FirstBucketOffset | |
SecondBucketOffset | |
ThirdBucketOffset | |
FourthBucketOffset | |
FifthBucketOffset | |
SixthBucketOffset |
Definition at line 62 of file qabstracteventdispatcher.cpp.
anonymous enum |
Enumerator | |
---|---|
FirstBucketSize | |
SecondBucketSize | |
ThirdBucketSize | |
FourthBucketSize | |
FifthBucketSize | |
SixthBucketSize |
Definition at line 71 of file qabstracteventdispatcher.cpp.
anonymous enum |
Enumerator | |
---|---|
NumberOfBuckets |
Definition at line 84 of file qabstracteventdispatcher.cpp.
|
inlinestatic |
Definition at line 140 of file qabstracteventdispatcher.cpp.
Referenced by QAbstractEventDispatcherPrivate::allocateTimerId().
|
inlinestatic |
Definition at line 135 of file qabstracteventdispatcher.cpp.
Referenced by QAbstractEventDispatcherPrivate::allocateTimerId(), and QAbstractEventDispatcherPrivate::releaseTimerId().
|
inlinestatic |
Definition at line 121 of file qabstracteventdispatcher.cpp.
Referenced by QAbstractEventDispatcherPrivate::allocateTimerId(), and QAbstractEventDispatcherPrivate::releaseTimerId().
|
inlinestatic |
Definition at line 110 of file qabstracteventdispatcher.cpp.
Referenced by QAbstractEventDispatcherPrivate::allocateTimerId(), and QAbstractEventDispatcherPrivate::releaseTimerId().
|
static |
Definition at line 99 of file qabstracteventdispatcher.cpp.
|
static |
Definition at line 86 of file qabstracteventdispatcher.cpp.
Referenced by allocateBucket(), bucketIndex(), and bucketOffset().
|
static |
Definition at line 80 of file qabstracteventdispatcher.cpp.
Referenced by allocateBucket(), and bucketOffset().
|
static |
Definition at line 57 of file qabstracteventdispatcher.cpp.
|
static |
Definition at line 55 of file qabstracteventdispatcher.cpp.
|
static |
Definition at line 107 of file qabstracteventdispatcher.cpp.
Referenced by QAbstractEventDispatcherPrivate::allocateTimerId(), and QAbstractEventDispatcherPrivate::releaseTimerId().
|
static |
Definition at line 52 of file qabstracteventdispatcher.cpp.
Referenced by QAbstractEventDispatcherPrivate::allocateTimerId(), prepareNewValueWithSerialNumber(), and QAbstractEventDispatcherPrivate::releaseTimerId().
|
static |
Definition at line 91 of file qabstracteventdispatcher.cpp.
Referenced by QAbstractEventDispatcherPrivate::allocateTimerId(), bucketOffset(), and QAbstractEventDispatcherPrivate::releaseTimerId().
|
static |
Definition at line 54 of file qabstracteventdispatcher.cpp.
Referenced by prepareNewValueWithSerialNumber().
|
static |
Definition at line 53 of file qabstracteventdispatcher.cpp.
Referenced by prepareNewValueWithSerialNumber().