curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_multi_timeout and curl_multi_wait

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 11 Jun 2017 17:49:28 +0200 (CEST)

On Sat, 10 Jun 2017, Mradula Nayak wrote:

> There is one thing I am not clear about. Does curl_multi_wait puts CPU to
> sleep while it is waiting? Or does it keep polling during the timeout?

libcurl uses poll() or select() for that, which allows the kernel to put the
CPU to sleep.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2017-06-11