From eaa2dff945366ed43b28fb1ae8e5c10ce95d9964 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Wed, 12 Jul 2017 12:16:34 +0200 Subject: irmd: Shutdown sanitizer without cancellation --- include/ouroboros/shm_rdrbuff.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/ouroboros/shm_rdrbuff.h') diff --git a/include/ouroboros/shm_rdrbuff.h b/include/ouroboros/shm_rdrbuff.h index fb12be74..1af8d0c9 100644 --- a/include/ouroboros/shm_rdrbuff.h +++ b/include/ouroboros/shm_rdrbuff.h @@ -26,6 +26,7 @@ #include #include +#include #include #include @@ -41,7 +42,8 @@ void shm_rdrbuff_close(struct shm_rdrbuff * rdrb); void shm_rdrbuff_destroy(struct shm_rdrbuff * rdrb); -void shm_rdrbuff_wait_full(struct shm_rdrbuff * rdrb); +int shm_rdrbuff_wait_full(struct shm_rdrbuff * rdrb, + struct timespec * timeo); /* returns the index of the buffer in the DU map */ ssize_t shm_rdrbuff_write(struct shm_rdrbuff * rdrb, -- cgit v1.2.3