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

(4ba106b38fe94ae3a7a8520b276a4873d11bb755)

#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/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 *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()

gboolean idleTimerSourceCheck ( GSource * source)
static

◆ idleTimerSourceDispatch()

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

Definition at line 196 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 237 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 43 of file qeventdispatcher_glib.cpp.

◆ socketNotifierSourceDispatch()

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

Definition at line 67 of file qeventdispatcher_glib.cpp.

◆ socketNotifierSourcePrepare()

gboolean socketNotifierSourcePrepare ( GSource * ,
gint * timeout )
static

Definition at line 36 of file qeventdispatcher_glib.cpp.

◆ timerSourceCheck()

gboolean timerSourceCheck ( GSource * source)
static

Definition at line 138 of file qeventdispatcher_glib.cpp.

References GTimerSource::runWithIdlePriority.

◆ timerSourceCheckHelper()

gboolean timerSourceCheckHelper ( GTimerSource * src)
static

Definition at line 113 of file qeventdispatcher_glib.cpp.

◆ timerSourceDispatch()

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

Definition at line 146 of file qeventdispatcher_glib.cpp.

References GTimerSource::runWithIdlePriority.

◆ timerSourcePrepare()

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

Definition at line 122 of file qeventdispatcher_glib.cpp.

References GTimerSource::runWithIdlePriority.

◆ timerSourcePrepareHelper()

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

Definition at line 100 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 203 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 251 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 83 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 156 of file qeventdispatcher_glib.cpp.