Lines Matching defs:timeout
78 int ff_network_wait_fd_timeout(int fd, int write, int64_t timeout, AVIOInterruptCB *int_cb)
89 if (timeout > 0) {
92 else if (av_gettime_relative() - wait_start > timeout)
98 int ff_network_sleep_interruptible(int64_t timeout, AVIOInterruptCB *int_cb)
108 time_left = timeout - (av_gettime_relative() - wait_start);
159 static int ff_poll_interrupt(struct pollfd *p, nfds_t nfds, int timeout,
162 int runs = timeout / POLLING_TIME;
176 } while (timeout <= 0 || runs-- > 0);
228 int ff_accept(int fd, int timeout, URLContext *h)
233 ret = ff_poll_interrupt(&lp, 1, timeout, &h->interrupt_callback);
247 socklen_t addrlen, int timeout, URLContext *h)
252 if ((ret = ff_accept(fd, timeout, h)) < 0)
259 socklen_t addrlen, int timeout, URLContext *h,
278 ret = ff_poll_interrupt(&p, 1, timeout, &h->interrupt_callback);
497 // Error (or timeout) for this socket; close the socket and remove