Lines Matching refs:msecs
232 timeout->next_run.tv_sec += timeout->msecs/1000;
233 timeout->next_run.tv_usec += (timeout->msecs%1000)*1000;
266 struct timeout *timeout_add_to(struct ioloop *ioloop, unsigned int msecs,
275 timeout->msecs = msecs;
277 if (msecs > 0) {
290 struct timeout *timeout_add(unsigned int msecs, const char *source_filename,
294 return timeout_add_to(current_ioloop, msecs,
301 timeout_add_short_to(struct ioloop *ioloop, unsigned int msecs,
305 return timeout_add_to(ioloop, msecs,
312 timeout_add_short(unsigned int msecs, const char *source_filename,
316 return timeout_add(msecs, source_filename, source_linenum,
359 new_to->msecs = old_to->msecs;
365 i_assert(new_to->msecs > 0);
392 else if (!timeout->one_shot && timeout->msecs > 0) {
412 if (timeout->msecs <= 1) {
478 int msecs;
484 if there is, we set msecs = 0 to ensure they are
487 /* no timeouts. use INT_MAX msecs for timeval and
498 msecs = 0;
503 msecs = timeout_get_wait_time(timeout, tv_r, &tv_now);
505 ioloop->next_max_time = (tv_now.tv_sec + msecs/1000) + 1;
512 return msecs;
544 i_assert(timeout->msecs > 0);