7#include <QSocketNotifier>
8#include <QCoreApplication>
9#include <QLoggingCategory>
23 screen->pageFlipped(sequence, tv_sec, tv_usec);
114 qCDebug(qLcEglfsKmsDebug,
"Event reader thread: entering event loop");
118 drmEventContext drmEvent;
119 memset(&drmEvent, 0,
sizeof(drmEvent));
120 drmEvent.version = 2;
121 drmEvent.vblank_handler =
nullptr;
123 drmHandleEvent(m_fd, &drmEvent);
130 qCDebug(qLcEglfsKmsDebug,
"Event reader thread: event loop stopped");
147 qCDebug(qLcEglfsKmsDebug,
"Initializing event reader for device %p fd %d",
148 m_device, m_device->
fd());
163 qCDebug(qLcEglfsKmsDebug,
"Stopping event reader for device %p", m_device);
DarwinBluetooth::LECBManagerNotifier * notifier
IOBluetoothDevice * device
static void postEvent(QObject *receiver, QEvent *event, int priority=Qt::NormalEventPriority)
QEglFSKmsEventHost * eventHost()
void startWaitFlip(void *key, QMutex *mutex, QWaitCondition *cond)
void create(QEglFSKmsDevice *device)
Type
This enum type defines the valid event types in Qt.
void moveToThread(QThread *thread)
Changes the thread affinity for this object and its children.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
virtual bool event(QEvent *event)
This virtual function receives events to an object and should return true if the event e was recogniz...
QThread * thread() const
Returns the thread in which the object lives.
void activated(QSocketDescriptor socket, QSocketNotifier::Type activationEvent, QPrivateSignal)
void start(Priority=InheritPriority)
static QThread * currentThread()
bool wait(QDeadlineTimer deadline=QDeadlineTimer(QDeadlineTimer::Forever))
RegisterWaitFlipEvent(void *key, QMutex *mutex, QWaitCondition *cond)
static const QEvent::Type TYPE
Combined button and popup list for selecting options.
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void * user_data
static QT_BEGIN_NAMESPACE void pageFlipHandler(int fd, unsigned int sequence, unsigned int tv_sec, unsigned int tv_usec, void *user_data)
#define qCDebug(category,...)
#define Q_DECLARE_LOGGING_CATEGORY(name)
GLfloat GLfloat GLfloat w
[0]
QtPrivate::QRegularExpressionMatchIteratorRangeBasedForIterator begin(const QRegularExpressionMatchIterator &iterator)
QEglFSKmsEventHost::PendingFlipWait pendingFlipWaits[MAX_FLIPS]
static const int MAX_FLIPS
bool event(QEvent *event) override
This virtual function receives events to an object and should return true if the event e was recogniz...
void * completedFlips[MAX_FLIPS]
void handlePageFlipCompleted(void *key)