41static inline int vlc_poll(
struct pollfd *fds,
unsigned nfds,
int timeout)
46 val =
poll(fds, nfds, timeout);
51# define poll(u,n,t) vlc_poll(u, n, t)
53#elif defined (__OS2__)
54static inline int vlc_poll (
struct pollfd *fds,
unsigned nfds,
int timeout)
56 static int (*vlc_poll_os2)(
struct pollfd *, unsigned, int) = NULL;
61 CHAR szFailed[CCHMAXPATH];
63 if (DosLoadModule(szFailed,
sizeof(szFailed),
"vlccore", &hmod))
66 if (DosQueryProcAddr(hmod, 0,
"_vlc_poll_os2", (PFN *)&vlc_poll_os2))
70 return (*vlc_poll_os2)(fds, nfds, timeout);
72# define poll(u,n,t) vlc_poll(u, n, t)
74#elif defined (__ANDROID__)
75static inline int vlc_poll (
struct pollfd *fds,
unsigned nfds,
int timeout)
81 int ugly_timeout = ((unsigned)timeout >= 50) ? 50 : timeout;
83 timeout -= ugly_timeout;
86 val =
poll (fds, nfds, ugly_timeout);
88 while (val == 0 && timeout != 0);
93# define poll(u,n,t) vlc_poll(u, n, t)
void vlc_testcancel(void)
Issues an explicit deferred cancellation point.
Definition thread.c:189
Definition vlc_fixups.h:501
This file is a collection of common definitions and types.
int poll(struct pollfd *, unsigned, int)
Thread primitive declarations.