io: add io_is_idle().
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 14 Nov 2013 02:29:21 +0000 (12:59 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 14 Nov 2013 02:29:21 +0000 (12:59 +1030)
commit1273379185b86aefe5d426d3208289b70044acac
tree03dc6363bdb78837dc70d374a3650a8a0bb042c4
parentdded32f2b03fca526271e35671fa36d299880429
io: add io_is_idle().

Turns out to be useful for complex cases.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/io/io.c
ccan/io/io.h
ccan/io/test/run-06-idle.c
ccan/io/test/run-14-duplex-both-read.c