diff options
author | Louai Al-Khanji <louai.al-khanji@theqtcompany.com> | 2015-12-02 18:48:46 -0800 |
---|---|---|
committer | Louai Al-Khanji <louai.al-khanji@theqtcompany.com> | 2016-02-03 10:25:21 +0000 |
commit | 24642df23ca33436bb9deb02ee5a85287b019af9 (patch) | |
tree | 0840297d7d0a47bc06e898c7bd778ce66181cb2d /src/corelib/kernel/qcore_unix_p.h | |
parent | a0f9ee5dca8e5482fb43583c6a6bdf731e3bcc5a (diff) |
QProcess: Use poll instead of select on Unix platforms
Change-Id: I3386ef228ce95209f6f221e18293d991b24a7b2e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/kernel/qcore_unix_p.h')
-rw-r--r-- | src/corelib/kernel/qcore_unix_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/kernel/qcore_unix_p.h b/src/corelib/kernel/qcore_unix_p.h index 11da70e008..9ceee17055 100644 --- a/src/corelib/kernel/qcore_unix_p.h +++ b/src/corelib/kernel/qcore_unix_p.h @@ -326,6 +326,8 @@ void qt_nanosleep(timespec amount); Q_CORE_EXPORT int qt_safe_poll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout_ts); +int qt_poll_msecs(struct pollfd *fds, nfds_t nfds, int timeout); + Q_CORE_EXPORT int qt_safe_select(int nfds, fd_set *fdread, fd_set *fdwrite, fd_set *fdexcept, const struct timespec *tv); |