![]() |
Qt 6.x
The Qt SDK
|
#include "qcore_unix_p.h"
Go to the source code of this file.
Macros | |
#define | QT_POLL_READ_MASK (POLLIN | POLLRDNORM) |
#define | QT_POLL_WRITE_MASK (POLLOUT | POLLWRNORM | POLLWRBAND) |
#define | QT_POLL_EXCEPT_MASK (POLLPRI | POLLRDBAND) |
#define | QT_POLL_ERROR_MASK (POLLERR | POLLNVAL) |
#define | QT_POLL_EVENTS_MASK (QT_POLL_READ_MASK | QT_POLL_WRITE_MASK | QT_POLL_EXCEPT_MASK) |
Functions | |
static int | qt_poll_prepare (struct pollfd *fds, nfds_t nfds, fd_set *read_fds, fd_set *write_fds, fd_set *except_fds) |
static void | qt_poll_examine_ready_read (struct pollfd &pfd) |
static int | qt_poll_sweep (struct pollfd *fds, nfds_t nfds, fd_set *read_fds, fd_set *write_fds, fd_set *except_fds) |
static bool | qt_poll_is_bad_fd (int fd) |
static int | qt_poll_mark_bad_fds (struct pollfd *fds, const nfds_t nfds) |
int | qt_poll (struct pollfd *fds, nfds_t nfds, const struct timespec *timeout_ts) |
#define QT_POLL_EVENTS_MASK (QT_POLL_READ_MASK | QT_POLL_WRITE_MASK | QT_POLL_EXCEPT_MASK) |
#define QT_POLL_WRITE_MASK (POLLOUT | POLLWRNORM | POLLWRBAND) |
int qt_poll | ( | struct pollfd * | fds, |
nfds_t | nfds, | ||
const struct timespec * | timeout_ts | ||
) |
Definition at line 136 of file qpoll.cpp.
References forever, i, QT_POLL_EVENTS_MASK, qt_poll_is_bad_fd(), qt_poll_mark_bad_fds(), qt_poll_prepare(), qt_poll_sweep(), ret, select(), and timespecToTimeval().
Referenced by qt_ppoll().
|
inlinestatic |
Definition at line 52 of file qpoll.cpp.
References EINTR_LOOP, error, and QT_POLL_READ_MASK.
Referenced by qt_poll_sweep().
|
inlinestatic |
Definition at line 104 of file qpoll.cpp.
References EINTR_LOOP, and ret.
Referenced by qt_poll(), and qt_poll_mark_bad_fds().
|
inlinestatic |
Definition at line 116 of file qpoll.cpp.
References i, QT_POLL_ERROR_MASK, and qt_poll_is_bad_fd().
Referenced by qt_poll().
|
inlinestatic |
Definition at line 18 of file qpoll.cpp.
References i, qMax(), QT_POLL_ERROR_MASK, QT_POLL_EVENTS_MASK, QT_POLL_EXCEPT_MASK, QT_POLL_READ_MASK, and QT_POLL_WRITE_MASK.
Referenced by qt_poll().
|
inlinestatic |
Definition at line 79 of file qpoll.cpp.
References i, qt_poll_examine_ready_read(), QT_POLL_EXCEPT_MASK, and QT_POLL_WRITE_MASK.
Referenced by qt_poll().