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>.
|
#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] = { -1, -1 } |
QAtomicInt | wakeUps |
Definition at line 42 of file qeventdispatcher_unix_p.h.
QThreadPipe::QThreadPipe | ( | ) |
Definition at line 51 of file qeventdispatcher_unix.cpp.
QThreadPipe::~QThreadPipe | ( | ) |
Definition at line 55 of file qeventdispatcher_unix.cpp.
References UsingEventfd.
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.
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().
pollfd QThreadPipe::prepare | ( | ) | const |
Definition at line 124 of file qeventdispatcher_unix.cpp.
References qt_make_pollfd().
void QThreadPipe::wakeUp | ( | ) |
Definition at line 129 of file qeventdispatcher_unix.cpp.
References QBasicAtomicInteger< T >::fetchAndOrAcquire(), qt_safe_write(), and wakeUps.
int QThreadPipe::fds[2] = { -1, -1 } |
Definition at line 55 of file qeventdispatcher_unix_p.h.
QAtomicInt QThreadPipe::wakeUps |
Definition at line 56 of file qeventdispatcher_unix_p.h.