From c69dd846c5aa2bed4db16961c5774a20cea7f828 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Tue, 11 Oct 2016 13:39:43 +0200 Subject: lib: Track SDUs in the fast path This will allow to finalize deallocating flows until all SDUs have been processed. Read and write calls will now block when a flow was deallocated. Replaces NULL checks in the fast path with asserts. --- include/ouroboros/shm_ap_rbuff.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/ouroboros/shm_ap_rbuff.h b/include/ouroboros/shm_ap_rbuff.h index dd82c01c..1e45ef7f 100644 --- a/include/ouroboros/shm_ap_rbuff.h +++ b/include/ouroboros/shm_ap_rbuff.h @@ -44,6 +44,12 @@ void shm_ap_rbuff_close(struct shm_ap_rbuff * rb); void shm_ap_rbuff_destroy(struct shm_ap_rbuff * rb); +void shm_ap_rbuff_open_port(struct shm_ap_rbuff * rb, + int port_id); + +void shm_ap_rbuff_close_port(struct shm_ap_rbuff * rb, + int port_id); + int shm_ap_rbuff_write(struct shm_ap_rbuff * rb, struct rb_entry * e); -- cgit v1.2.3