[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[Libevent-users] Dynamically adding and removing evconnlistener



I am trying to share event loop among multiple listeners instead of blocking one thread per listener.

Things work fine if I add all my evconnlistener instances before starting the event loop, but only one listener works if I add them after starting event loop (event loop runs in a background thread).ÂCan I dynamically add and removeÂevconnlistener instances like this?

Thanks.