[Libevent-users] using threads and event_base... Is this an issue ?

Wouter Wijngaards wouter at NLnetLabs.nl
Thu Mar 8 04:56:21 EST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Massimo Cetra wrote:
> Wouter Wijngaards wrote:
> I hope your patch or a fix is included quickly...

Yes I need it too :)

> I wonder if opening 2 FD per thread is necessary...
> Having 100 threads doing IO would need at least 300 sockets...
> Saving FD is not a bad idea...

Hmm perhaps the opening of the pipe can be delayed until evsignal_add()
is called? This will only open sockets for event bases where you use
signal handling.

>>   
> This could be a good idea even if i have not yet the need of using
> multiple eventbases per thread...
> 
> Thanks again,

np.

Wouter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFF793FkDLqNwOhpPgRAoR3AKCvAXa/lY1exiW4oaKo8klMOvw5YwCePBqz
otY3Nft0BYi4/4s5RA/ryOE=
=a419
-----END PGP SIGNATURE-----


More information about the Libevent-users mailing list