summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDimitri Staessens <[email protected]>2018-03-11 14:28:49 +0100
committerSander Vrijders <[email protected]>2018-03-12 10:32:24 +0100
commit9bf0d277416c342a8a9e0b2017b2b10f1d093245 (patch)
treeea940f7f3337d5543aff9e1d2ef04f6b544ad899 /include
parent6a4151baa8231cdaf746761fd8dc4aacb895c9e5 (diff)
downloadouroboros-9bf0d277416c342a8a9e0b2017b2b10f1d093245.tar.gz
ouroboros-9bf0d277416c342a8a9e0b2017b2b10f1d093245.zip
lib: Implement timeout on blocking write
This completes the implementation of the SNDTIMEO for a blocking write. Fixes #6. Signed-off-by: Dimitri Staessens <[email protected]> Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/shm_rdrbuff.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/ouroboros/shm_rdrbuff.h b/include/ouroboros/shm_rdrbuff.h
index cbfb04e7..c27ff24d 100644
--- a/include/ouroboros/shm_rdrbuff.h
+++ b/include/ouroboros/shm_rdrbuff.h
@@ -53,11 +53,12 @@ ssize_t shm_rdrbuff_write(struct shm_rdrbuff * rdrb,
const uint8_t * data,
size_t data_len);
-ssize_t shm_rdrbuff_write_b(struct shm_rdrbuff * rdrb,
- size_t headspace,
- size_t tailspace,
- const uint8_t * data,
- size_t data_len);
+ssize_t shm_rdrbuff_write_b(struct shm_rdrbuff * rdrb,
+ size_t headspace,
+ size_t tailspace,
+ const uint8_t * data,
+ size_t data_len,
+ const struct timespec * abstime);
ssize_t shm_rdrbuff_read(uint8_t ** dst,
struct shm_rdrbuff * rdrb,