Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qeventdispatcher_glib.cpp File Reference
#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/qpair.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 179 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 190 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 165 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 231 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 236 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 214 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 39 of file qeventdispatcher_glib.cpp.

References i, pending, and qWarning.

◆ socketNotifierSourceDispatch()

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

Definition at line 63 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 32 of file qeventdispatcher_glib.cpp.

◆ timerSourceCheck()

static gboolean timerSourceCheck ( GSource *  source)
static

Definition at line 132 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 107 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 140 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 116 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 96 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 197 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 245 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 79 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 150 of file qeventdispatcher_glib.cpp.

Referenced by QEventDispatcherGlibPrivate::QEventDispatcherGlibPrivate().