diff options
author | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-11-25 11:23:19 +0000 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-11-25 11:23:19 +0000 |
commit | e8b28a859f0c2358c4ff7dd5cb3cedd67de1f23d (patch) | |
tree | de1c5c642f37797088867499fd3b53642dd32e82 | |
parent | 1475be46f1a2eba8d14b434a0a4bdddd9295f6f4 (diff) | |
parent | e1d29dc6c7039a78a9b2bc3506c2ef8abe48525b (diff) | |
download | ouroboros-e8b28a859f0c2358c4ff7dd5cb3cedd67de1f23d.tar.gz ouroboros-e8b28a859f0c2358c4ff7dd5cb3cedd67de1f23d.zip |
Merged in dstaesse/ouroboros/be-rbuff (pull request #308)
lib: Deprecate shm_rbuff_reset
-rw-r--r-- | include/ouroboros/shm_rbuff.h | 2 | ||||
-rw-r--r-- | src/lib/shm_rbuff.c | 10 |
2 files changed, 0 insertions, 12 deletions
diff --git a/include/ouroboros/shm_rbuff.h b/include/ouroboros/shm_rbuff.h index 898bdaa8..fc069122 100644 --- a/include/ouroboros/shm_rbuff.h +++ b/include/ouroboros/shm_rbuff.h @@ -50,6 +50,4 @@ ssize_t shm_rbuff_read(struct shm_rbuff * rb); ssize_t shm_rbuff_read_b(struct shm_rbuff * rb, const struct timespec * timeout); -void shm_rbuff_reset(struct shm_rbuff * rb); - #endif /* OUROBOROS_SHM_RBUFF_H */ diff --git a/src/lib/shm_rbuff.c b/src/lib/shm_rbuff.c index c0901ab1..1e97364c 100644 --- a/src/lib/shm_rbuff.c +++ b/src/lib/shm_rbuff.c @@ -418,13 +418,3 @@ void shm_rbuff_fini(struct shm_rbuff * rb) #endif pthread_cleanup_pop(true); } - -void shm_rbuff_reset(struct shm_rbuff * rb) -{ - assert(rb); - - pthread_mutex_lock(rb->lock); - *rb->tail = 0; - *rb->head = 0; - pthread_mutex_unlock(rb->lock); -} |