summaryrefslogtreecommitdiff
path: root/include/ouroboros/shm_ap_rbuff.h
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-05-22 14:53:22 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-05-22 15:04:20 +0200
commitdfe5a46fb5315112d1173ac983ffc416dc3ecf18 (patch)
treefe6459aadc00e81ef1252392dc07e009e3e8888e /include/ouroboros/shm_ap_rbuff.h
parent745cc666e34d7e0c29822615987ce02832ac5a8c (diff)
downloadouroboros-dfe5a46fb5315112d1173ac983ffc416dc3ecf18.tar.gz
ouroboros-dfe5a46fb5315112d1173ac983ffc416dc3ecf18.zip
lib, ipcpd, irmd: fixes deallocation and fast path
The fast path has been rewritten to have certainty to read the correct flow. Deallocation will not release port_id's or fd's until they are explicitly released locally.
Diffstat (limited to 'include/ouroboros/shm_ap_rbuff.h')
-rw-r--r--include/ouroboros/shm_ap_rbuff.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/ouroboros/shm_ap_rbuff.h b/include/ouroboros/shm_ap_rbuff.h
index 0ececf88..99c5a423 100644
--- a/include/ouroboros/shm_ap_rbuff.h
+++ b/include/ouroboros/shm_ap_rbuff.h
@@ -47,7 +47,8 @@ void shm_ap_rbuff_close(struct shm_ap_rbuff * rb);
void shm_ap_rbuff_destroy(struct shm_ap_rbuff * rb);
int shm_ap_rbuff_write(struct shm_ap_rbuff * rb,
struct rb_entry * e);
-int shm_ap_rbuff_peek(struct shm_ap_rbuff * rb);
-struct rb_entry * shm_ap_rbuff_read();
+struct rb_entry * shm_ap_rbuff_read(struct shm_ap_rbuff * rb);
+ssize_t shm_ap_rbuff_read_port(struct shm_ap_rbuff * rb,
+ int port_id);
#endif /* OUROBOROS_SHM_AP_RBUFF_H */