![]() |
Qt 6.x
The Qt SDK
|
#include <qeventdispatcher_unix_p.h>
Public Member Functions | |
QThreadPipe () | |
~QThreadPipe () | |
bool | init () |
pollfd | prepare () const |
void | wakeUp () |
int | check (const pollfd &pfd) |
Public Attributes | |
int | fds [2] |
QAtomicInt | wakeUps |
Definition at line 42 of file qeventdispatcher_unix_p.h.
QThreadPipe::QThreadPipe | ( | ) |
Definition at line 56 of file qeventdispatcher_unix.cpp.
QThreadPipe::~QThreadPipe | ( | ) |
Definition at line 65 of file qeventdispatcher_unix.cpp.
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.
bool QThreadPipe::init | ( | ) |
Definition at line 95 of file qeventdispatcher_unix.cpp.
References open(), qsnprintf(), and qt_safe_pipe().
Referenced by QEventDispatcherUNIXPrivate::QEventDispatcherUNIXPrivate().
pollfd QThreadPipe::prepare | ( | ) | const |
Definition at line 132 of file qeventdispatcher_unix.cpp.
References qt_make_pollfd().
void QThreadPipe::wakeUp | ( | ) |
Definition at line 137 of file qeventdispatcher_unix.cpp.
References EINTR_LOOP, qt_safe_write(), ret, QBasicAtomicInteger< T >::testAndSetAcquire(), and wakeUps.
int QThreadPipe::fds[2] |
Definition at line 55 of file qeventdispatcher_unix_p.h.
QAtomicInt QThreadPipe::wakeUps |
Definition at line 56 of file qeventdispatcher_unix_p.h.