]> git.ozlabs.org Git - ccan/commit
ccan/io: keep always pointers to plans, not a linked list.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 28 Feb 2019 05:25:29 +0000 (15:55 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 28 Feb 2019 05:25:29 +0000 (15:55 +1030)
commita5881c0deb210f56c2095366ae6cdabd5230d68d
tree543ebe8c7acbd3f4492a4d345abb7770b045209a
parent1966714494a5de39b2ee944fcc01f333c1741dbd
ccan/io: keep always pointers to plans, not a linked list.

Duplex io_conns can be in the always list twice, and it was a source
of bugs, but I didn't want to add a second list_node.  Since there are
not many always at once, it's better (and more space-efficient) to use
a simple pointer array.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/io/backend.h
ccan/io/io.c
ccan/io/poll.c