Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QThreadPipe Struct Reference

#include <qeventdispatcher_unix_p.h>

+ Collaboration diagram for QThreadPipe:

Public Member Functions

 QThreadPipe ()
 
 ~QThreadPipe ()
 
bool init ()
 
pollfd prepare () const
 
void wakeUp ()
 
int check (const pollfd &pfd)
 

Public Attributes

int fds [2]
 
QAtomicInt wakeUps
 

Detailed Description

Definition at line 42 of file qeventdispatcher_unix_p.h.

Constructor & Destructor Documentation

◆ QThreadPipe()

QThreadPipe::QThreadPipe ( )

Definition at line 56 of file qeventdispatcher_unix.cpp.

◆ ~QThreadPipe()

QThreadPipe::~QThreadPipe ( )

Definition at line 65 of file qeventdispatcher_unix.cpp.

Member Function Documentation

◆ check()

int QThreadPipe::check ( const pollfd &  pfd)

Definition at line 154 of file qeventdispatcher_unix.cpp.

References Q_ASSERT, qWarning, read(), QBasicAtomicInteger< T >::testAndSetRelease(), and wakeUps.

+ Here is the call graph for this function:

◆ init()

bool QThreadPipe::init ( )

Definition at line 95 of file qeventdispatcher_unix.cpp.

References open(), qsnprintf(), and qt_safe_pipe().

Referenced by QEventDispatcherUNIXPrivate::QEventDispatcherUNIXPrivate().

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

◆ prepare()

pollfd QThreadPipe::prepare ( ) const

Definition at line 132 of file qeventdispatcher_unix.cpp.

References qt_make_pollfd().

+ Here is the call graph for this function:

◆ wakeUp()

void QThreadPipe::wakeUp ( )

Definition at line 137 of file qeventdispatcher_unix.cpp.

References EINTR_LOOP, qt_safe_write(), ret, QBasicAtomicInteger< T >::testAndSetAcquire(), and wakeUps.

+ Here is the call graph for this function:

Member Data Documentation

◆ fds

int QThreadPipe::fds[2]

Definition at line 55 of file qeventdispatcher_unix_p.h.

◆ wakeUps

QAtomicInt QThreadPipe::wakeUps

Definition at line 56 of file qeventdispatcher_unix_p.h.

Referenced by check(), and wakeUp().


The documentation for this struct was generated from the following files: