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
qeventdispatcher_glib.cpp File Reference

(f8da484d5741d1191504eefddf5134fd7009e16a)

#include "qeventdispatcher_glib_p.h"
#include "qeventdispatcher_unix_p.h"
#include <private/qnumeric_p.h>
#include <private/qthread_p.h>
#include "qcoreapplication.h"
#include "qsocketnotifier.h"
#include <QtCore/qlist.h>
#include <glib.h>
#include "moc_qeventdispatcher_glib_p.cpp"
+ Include dependency graph for qeventdispatcher_glib.cpp:

Go to the source code of this file.

Classes

struct  GPollFDWithQSocketNotifier
 
struct  GSocketNotifierSource
 
struct  GTimerSource
 
struct  GIdleTimerSource
 
struct  GPostEventSource
 

Functions

static gboolean socketNotifierSourcePrepare (GSource *, gint *timeout)
 
static gboolean socketNotifierSourceCheck (GSource *source)
 
static gboolean socketNotifierSourceDispatch (GSource *source, GSourceFunc, gpointer)
 
static gboolean timerSourcePrepareHelper (GTimerSource *src, gint *timeout)
 
static gboolean timerSourceCheckHelper (GTimerSource *src)
 
static gboolean timerSourcePrepare (GSource *source, gint *timeout)
 
static gboolean timerSourceCheck (GSource *source)
 
static gboolean timerSourceDispatch (GSource *source, GSourceFunc, gpointer)
 
static gboolean idleTimerSourcePrepare (GSource *source, gint *timeout)
 
static gboolean idleTimerSourceCheck (GSource *source)
 
static gboolean idleTimerSourceDispatch (GSource *source, GSourceFunc, gpointer)
 
static gboolean postEventSourcePrepare (GSource *s, gint *timeout)
 
static gboolean postEventSourceCheck (GSource *source)
 
static gboolean postEventSourceDispatch (GSource *s, GSourceFunc, gpointer)
 

Variables

static Q_CONSTINIT GSourceFuncs socketNotifierSourceFuncs
 
static Q_CONSTINIT GSourceFuncs timerSourceFuncs
 
static Q_CONSTINIT GSourceFuncs idleTimerSourceFuncs
 
static Q_CONSTINIT GSourceFuncs postEventSourceFuncs
 

Function Documentation

◆ idleTimerSourceCheck()

static gboolean idleTimerSourceCheck ( GSource * source)
static

Definition at line 184 of file qeventdispatcher_glib.cpp.

References GTimerSource::runWithIdlePriority, GIdleTimerSource::timerSource, and timerSourceCheckHelper().

+ Here is the call graph for this function:

◆ idleTimerSourceDispatch()

static gboolean idleTimerSourceDispatch ( GSource * source,
GSourceFunc ,
gpointer  )
static

Definition at line 195 of file qeventdispatcher_glib.cpp.

References GTimerSource::source, timerSourceDispatch(), and void.

+ Here is the call graph for this function:

◆ idleTimerSourcePrepare()

static gboolean idleTimerSourcePrepare ( GSource * source,
gint * timeout )
static

Definition at line 170 of file qeventdispatcher_glib.cpp.

References GTimerSource::runWithIdlePriority, GIdleTimerSource::timerSource, and timerSourcePrepareHelper().

+ Here is the call graph for this function:

◆ postEventSourceCheck()

static gboolean postEventSourceCheck ( GSource * source)
static

Definition at line 236 of file qeventdispatcher_glib.cpp.

References postEventSourcePrepare().

+ Here is the call graph for this function:

◆ postEventSourceDispatch()

static gboolean postEventSourceDispatch ( GSource * s,
GSourceFunc ,
gpointer  )
static

Definition at line 241 of file qeventdispatcher_glib.cpp.

References GPostEventSource::lastSerialNumber, and QCoreApplication::sendPostedEvents().

+ Here is the call graph for this function:

◆ postEventSourcePrepare()

static gboolean postEventSourcePrepare ( GSource * s,
gint * timeout )
static

Definition at line 219 of file qeventdispatcher_glib.cpp.

References QThreadData::current(), GPostEventSource::d, and QEventDispatcherGlibPrivate::wakeUpCalled.

Referenced by postEventSourceCheck().

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

◆ socketNotifierSourceCheck()

static gboolean socketNotifierSourceCheck ( GSource * source)
static

Definition at line 42 of file qeventdispatcher_glib.cpp.

References i, pending, and qWarning.

◆ socketNotifierSourceDispatch()

static gboolean socketNotifierSourceDispatch ( GSource * source,
GSourceFunc ,
gpointer  )
static

Definition at line 66 of file qeventdispatcher_glib.cpp.

References QCoreApplication::sendEvent(), and QEvent::SockAct.

+ Here is the call graph for this function:

◆ socketNotifierSourcePrepare()

static gboolean socketNotifierSourcePrepare ( GSource * ,
gint * timeout )
static

Definition at line 35 of file qeventdispatcher_glib.cpp.

◆ timerSourceCheck()

static gboolean timerSourceCheck ( GSource * source)
static

Definition at line 137 of file qeventdispatcher_glib.cpp.

References timerSourceCheckHelper().

+ Here is the call graph for this function:

◆ timerSourceCheckHelper()

static gboolean timerSourceCheckHelper ( GTimerSource * src)
static

Definition at line 112 of file qeventdispatcher_glib.cpp.

References QEventLoop::X11ExcludeTimers.

Referenced by idleTimerSourceCheck(), and timerSourceCheck().

+ Here is the caller graph for this function:

◆ timerSourceDispatch()

static gboolean timerSourceDispatch ( GSource * source,
GSourceFunc ,
gpointer  )
static

Definition at line 145 of file qeventdispatcher_glib.cpp.

References QTimerInfoList::activateTimers(), GTimerSource::processEventsFlags, GTimerSource::runWithIdlePriority, GTimerSource::timerList, void, and QEventLoop::X11ExcludeTimers.

Referenced by idleTimerSourceDispatch().

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

◆ timerSourcePrepare()

static gboolean timerSourcePrepare ( GSource * source,
gint * timeout )
static

Definition at line 121 of file qeventdispatcher_glib.cpp.

References timerSourcePrepareHelper().

+ Here is the call graph for this function:

◆ timerSourcePrepareHelper()

static gboolean timerSourcePrepareHelper ( GTimerSource * src,
gint * timeout )
static

Definition at line 99 of file qeventdispatcher_glib.cpp.

References QEventLoop::X11ExcludeTimers.

Referenced by idleTimerSourcePrepare(), and timerSourcePrepare().

+ Here is the caller graph for this function:

Variable Documentation

◆ idleTimerSourceFuncs

Q_CONSTINIT GSourceFuncs idleTimerSourceFuncs
static
Initial value:
= {
nullptr,
nullptr,
nullptr
}
static gboolean idleTimerSourcePrepare(GSource *source, gint *timeout)
static gboolean idleTimerSourceDispatch(GSource *source, GSourceFunc, gpointer)
static gboolean idleTimerSourceCheck(GSource *source)

Definition at line 202 of file qeventdispatcher_glib.cpp.

Referenced by QEventDispatcherGlibPrivate::QEventDispatcherGlibPrivate().

◆ postEventSourceFuncs

Q_CONSTINIT GSourceFuncs postEventSourceFuncs
static
Initial value:
= {
nullptr,
nullptr,
nullptr
}
static gboolean postEventSourceDispatch(GSource *s, GSourceFunc, gpointer)
static gboolean postEventSourcePrepare(GSource *s, gint *timeout)
static gboolean postEventSourceCheck(GSource *source)

Definition at line 250 of file qeventdispatcher_glib.cpp.

Referenced by QEventDispatcherGlibPrivate::QEventDispatcherGlibPrivate().

◆ socketNotifierSourceFuncs

Q_CONSTINIT GSourceFuncs socketNotifierSourceFuncs
static
Initial value:
= {
nullptr,
nullptr,
nullptr
}
static gboolean socketNotifierSourcePrepare(GSource *, gint *timeout)
static gboolean socketNotifierSourceCheck(GSource *source)
static gboolean socketNotifierSourceDispatch(GSource *source, GSourceFunc, gpointer)

Definition at line 82 of file qeventdispatcher_glib.cpp.

Referenced by QEventDispatcherGlibPrivate::QEventDispatcherGlibPrivate().

◆ timerSourceFuncs

Q_CONSTINIT GSourceFuncs timerSourceFuncs
static
Initial value:
= {
nullptr,
nullptr,
nullptr
}
static gboolean timerSourceCheck(GSource *source)
static gboolean timerSourcePrepare(GSource *source, gint *timeout)
static gboolean timerSourceDispatch(GSource *source, GSourceFunc, gpointer)

Definition at line 155 of file qeventdispatcher_glib.cpp.

Referenced by QEventDispatcherGlibPrivate::QEventDispatcherGlibPrivate().