diff options
author | dimitri staessens <[email protected]> | 2016-10-11 13:39:43 +0200 |
---|---|---|
committer | dimitri staessens <[email protected]> | 2016-10-11 13:45:02 +0200 |
commit | c69dd846c5aa2bed4db16961c5774a20cea7f828 (patch) | |
tree | 7e9eb9f82c4fab120abc11c4b539d4beb4c19982 /include | |
parent | 99356adf207e0fe81a34ee1acfd8cacc3d2860c7 (diff) | |
download | ouroboros-c69dd846c5aa2bed4db16961c5774a20cea7f828.tar.gz ouroboros-c69dd846c5aa2bed4db16961c5774a20cea7f828.zip |
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/ouroboros/shm_ap_rbuff.h | 6 |
1 files changed, 6 insertions, 0 deletions
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); |