Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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] = { -1, -1 }
 
QAtomicInt wakeUps
 

Detailed Description

Definition at line 42 of file qeventdispatcher_unix_p.h.

Constructor & Destructor Documentation

◆ QThreadPipe()

QThreadPipe::QThreadPipe ( )

Definition at line 51 of file qeventdispatcher_unix.cpp.

◆ ~QThreadPipe()

QThreadPipe::~QThreadPipe ( )

Definition at line 55 of file qeventdispatcher_unix.cpp.

References UsingEventfd.

Member Function Documentation

◆ check()

int QThreadPipe::check ( const pollfd & pfd)

Definition at line 141 of file qeventdispatcher_unix.cpp.

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

+ Here is the call graph for this function:

◆ init()

bool QThreadPipe::init ( )

Definition at line 85 of file qeventdispatcher_unix.cpp.

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

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 124 of file qeventdispatcher_unix.cpp.

References qt_make_pollfd().

+ Here is the call graph for this function:

◆ wakeUp()

void QThreadPipe::wakeUp ( )

Definition at line 129 of file qeventdispatcher_unix.cpp.

References QBasicAtomicInteger< T >::fetchAndOrAcquire(), qt_safe_write(), and wakeUps.

+ Here is the call graph for this function:

Member Data Documentation

◆ fds

int QThreadPipe::fds[2] = { -1, -1 }

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: