diff options
Diffstat (limited to 'osdep/poll_wrapper.h')
-rw-r--r-- | osdep/poll_wrapper.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/osdep/poll_wrapper.h b/osdep/poll_wrapper.h index 8593c1e77c..b359ed39a0 100644 --- a/osdep/poll_wrapper.h +++ b/osdep/poll_wrapper.h @@ -1,7 +1,12 @@ #pragma once #include <poll.h> +#include <stdint.h> // Behaves like poll(3) but works for device files on macOS. // Only supports POLLIN and POLLOUT. int polldev(struct pollfd fds[], nfds_t nfds, int timeout); + +// Generic polling wrapper. It will try and use higher resolution +// polling (ppoll) if available. +int mp_poll(struct pollfd *fds, int nfds, int64_t timeout_ns); |