[Dovecot] [PATCH] pass struct io * to io_loop_handle_add()/io_loop_handle_remove()

Timo Sirainen tss at iki.fi
Mon Aug 23 17:04:01 EEST 2004


On 23.8.2004, at 15:50, Andrey Panin wrote:

> Attached patch replaces fd and condition parameters passed to
> io_loop_handle_add() with struct io pointer. Now io_loop_handle_add()
> can pass this pointer as user data to epoll_ctl syscall and when
> event arrives we will have corresponding io structure pointer
> for free withiot traversing possibly long ioloop->ios list.

Committed, but you'd also have to change the way io_destroy() works. I 
guess it could be simply changed to use reference counting instead of 
the delayed destroying. Hmm. Looks like ioloop code could use several 
optimizations..
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://dovecot.org/pipermail/dovecot/attachments/20040823/511a5727/attachment-0001.bin>


More information about the dovecot mailing list