Qt 4.8
Classes | Functions
qabstracteventdispatcher_p.h File Reference
#include "QtCore/qabstracteventdispatcher.h"
#include "private/qobject_p.h"

Go to the source code of this file.

Classes

class  QAbstractEventDispatcherPrivate
 

Functions

Q_CORE_EXPORT uint qGlobalPostedEventsCount ()
 

Function Documentation

◆ qGlobalPostedEventsCount()

Q_CORE_EXPORT uint qGlobalPostedEventsCount ( )

Definition at line 348 of file qcoreapplication.cpp.

Referenced by QEventDispatcherQPA::hasPendingEvents(), QEventDispatcherX11::hasPendingEvents(), QEventDispatcherQWS::hasPendingEvents(), QEventDispatcherMac::hasPendingEvents(), and QEventDispatcherUNIX::hasPendingEvents().

349 {
350  QThreadData *currentThreadData = QThreadData::current();
351  return currentThreadData->postEventList.size() - currentThreadData->postEventList.startOffset;
352 }
QPostEventList postEventList
Definition: qthread_p.h:266
int size() const
Returns the number of items in the list.
Definition: qlist.h:137
static QThreadData * current()