Lines Matching refs:wait_ms
580 unsigned wait_ms;
698 wait_ms = COAP_RESOURCE_CHECK_TIME * 1000;
705 * Using epoll. It is more usual to call coap_io_process() with wait_ms
716 tv.tv_sec = wait_ms / 1000;
717 tv.tv_usec = (wait_ms % 1000) * 1000;
743 result = coap_io_process(ctx, wait_ms);
747 } else if (result && (unsigned)result < wait_ms) {
749 wait_ms -= result;
752 * result == 0, or result >= wait_ms
753 * (wait_ms could have decremented to a small value, below
757 wait_ms = COAP_RESOURCE_CHECK_TIME * 1000;
773 /* need to wait until next second starts if wait_ms is too large */
776 if (next_sec_ms && next_sec_ms < wait_ms)
777 wait_ms = next_sec_ms;