]> git.ozlabs.org Git - ccan/commit
ccan/io: add io_out_wait() and io_out_always().
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 4 Aug 2014 08:17:21 +0000 (17:47 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 4 Aug 2014 08:17:21 +0000 (17:47 +0930)
commit0fbc79090f9ff5bc1caf8c0f0f05525a05f2e82d
tree6f84ee98fccbeeb41e3421a832f31ffcfadb3c91
parentd8ecdc8021b532fe76f001290fcd79c4fb9e1323
ccan/io: add io_out_wait() and io_out_always().

This specificity is required, for example, when doing:

return io_duplex(conn, io_read(...), io_always(...));

The workaround suggested doesn't work, because io_duplex_prepare()
asserts() if the plans aren't UNSET to start.  And pettycoin needs this.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/io/io.c
ccan/io/io.h
ccan/io/test/run-12-bidir.c