curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: can't go ahead if event isn't finished in libevent

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 30 Apr 2017 17:59:05 +0200 (CEST)

On Fri, 28 Apr 2017, Pahome Chen via curl-library wrote:

> The *sock_cb* will not work when I add *while(1);* in the last of *fifo_cb
> (*block *fifo_cb* in other words*).*

Right, because how could it? The entire hiperfifo program runs in a single
thread. If you block a function and never return from it, the entire thread
will continue executing in that loop.

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