diff options
author | Dimitri Staessens <[email protected]> | 2019-04-06 13:34:17 +0200 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2019-04-06 13:40:52 +0200 |
commit | 3e446f29375c0908e8b68ad3a4fd0c5958538150 (patch) | |
tree | 323b8f4051567c4e552d622f55a06c224a78fd7a /include | |
parent | 7039fd62a5863741adb757665696a67a8228db40 (diff) | |
download | ouroboros-3e446f29375c0908e8b68ad3a4fd0c5958538150.tar.gz ouroboros-3e446f29375c0908e8b68ad3a4fd0c5958538150.zip |
lib: Set independent size for rbuff
This allows setting the size of the rbuffs in a system independently
of the main packet buffer using SHM_RBUFF_SIZE. The benefit of setting
a smaller rbuff size is that a single process can't fully occupy the
main packet buffer.
Signed-off-by: Dimitri Staessens <[email protected]>
Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'include')
-rw-r--r-- | include/ouroboros/shm_rbuff.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ouroboros/shm_rbuff.h b/include/ouroboros/shm_rbuff.h index c47ae46e..d8c53ee0 100644 --- a/include/ouroboros/shm_rbuff.h +++ b/include/ouroboros/shm_rbuff.h @@ -54,6 +54,10 @@ void shm_rbuff_fini(struct shm_rbuff * rb); int shm_rbuff_write(struct shm_rbuff * rb, size_t idx); +int shm_rbuff_write_b(struct shm_rbuff * rb, + size_t idx, + const struct timespec * abstime); + ssize_t shm_rbuff_read(struct shm_rbuff * rb); ssize_t shm_rbuff_read_b(struct shm_rbuff * rb, |