]> rtime.felk.cvut.cz Git - ulut.git/commit
Initial version of CBUFF tail detach version.
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Mon, 26 Nov 2012 00:55:03 +0000 (01:55 +0100)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Mon, 26 Nov 2012 00:55:03 +0000 (01:55 +0100)
commit11351431ebaabaa3665f38963c045b6dc920f18c
tree986dc18c5a661e2ef84a7f8974f536e63b4873f6
parent0b6baeca64827c2dfaa86b43bbb9ab86c6421e7c
Initial version of CBUFF tail detach version.

The tail/consumer disconnection is quite problematic
because no message intended to be consumed by tail
can be left in the buffer because else i prevent
reuse of the buffer space.

The ul_cbuff_tail_detach_onestep() function returns
value 0 if there is no message left and tail is disconnected.
Value 1 indicates that at least one more iterations is required.
Value 2 is returned if there are partially filed messages
preventing immediate next step. Wait for consumer
wake event is required in this case.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
ulut/ul_cbuff.h