Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qeventdispatcher_glib.cpp File Reference

(17be3220166cd703127852550f2baa91623df1da)

#include "qeventdispatcher_glib_p.h"
#include "qeventdispatcher_unix_p.h"
#include <private/qthread_p.h>
#include "qcoreapplication.h"
#include "qsocketnotifier.h"
#include <QtCore/qlist.h>
#include <QtCore/q20memory.h>
#include <QtCore/q26numeric.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 *timeouttimeout)
static gboolean socketNotifierSourceCheck (GSource *sourcesource)
static gboolean socketNotifierSourceDispatch (GSource *sourcesource, GSourceFunc, gpointer)
static gboolean timerSourcePrepareHelper (GTimerSource *srcsrc, gint *timeouttimeout)
static gboolean timerSourceCheckHelper (GTimerSource *srcsrc)
static gboolean timerSourcePrepare (GSource *sourcesource, gint *timeouttimeout)
static gboolean timerSourceCheck (GSource *sourcesource)
static gboolean timerSourceDispatch (GSource *sourcesource, GSourceFunc, gpointer)
static gboolean idleTimerSourcePrepare (GSource *sourcesource, gint *timeouttimeout)
static gboolean idleTimerSourceCheck (GSource *sourcesource)
static gboolean idleTimerSourceDispatch (GSource *sourcesource, GSourceFunc, gpointer)
static gboolean postEventSourcePrepare (GSource *ss, gint *timeouttimeout)
static gboolean postEventSourceCheck (GSource *sourcesource)
static gboolean postEventSourceDispatch (GSource *ss, 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()

gboolean idleTimerSourceCheck ( GSource * source)
static

◆ idleTimerSourceDispatch()

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

Definition at line 198 of file qeventdispatcher_glib.cpp.

References GIdleTimerSource::timerSource.

◆ idleTimerSourcePrepare()

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

◆ postEventSourceCheck()

gboolean postEventSourceCheck ( GSource * source)
static

Definition at line 240 of file qeventdispatcher_glib.cpp.

◆ postEventSourceDispatch()

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

◆ postEventSourcePrepare()

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

◆ socketNotifierSourceCheck()

gboolean socketNotifierSourceCheck ( GSource * source)
static

Definition at line 45 of file qeventdispatcher_glib.cpp.

◆ socketNotifierSourceDispatch()

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

Definition at line 69 of file qeventdispatcher_glib.cpp.

◆ socketNotifierSourcePrepare()

gboolean socketNotifierSourcePrepare ( GSource * ,
gint * timeout )
static

Definition at line 38 of file qeventdispatcher_glib.cpp.

◆ timerSourceCheck()

gboolean timerSourceCheck ( GSource * source)
static

Definition at line 140 of file qeventdispatcher_glib.cpp.

References GTimerSource::runWithIdlePriority.

◆ timerSourceCheckHelper()

gboolean timerSourceCheckHelper ( GTimerSource * src)
static

Definition at line 115 of file qeventdispatcher_glib.cpp.

◆ timerSourceDispatch()

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

Definition at line 148 of file qeventdispatcher_glib.cpp.

References GTimerSource::runWithIdlePriority.

◆ timerSourcePrepare()

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

Definition at line 124 of file qeventdispatcher_glib.cpp.

References GTimerSource::runWithIdlePriority.

◆ timerSourcePrepareHelper()

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

Definition at line 102 of file qeventdispatcher_glib.cpp.

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 205 of file qeventdispatcher_glib.cpp.

◆ 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 255 of file qeventdispatcher_glib.cpp.

◆ 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 85 of file qeventdispatcher_glib.cpp.

◆ 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 158 of file qeventdispatcher_glib.cpp.