Permalink
Browse files

Remove unused "atomic" sem

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
  • Loading branch information...
1 parent 74aea12 commit 27de5ecf71a90ba4c76c77d568647d41d5194d18 @asalkeld asalkeld committed May 21, 2012
Showing with 0 additions and 39 deletions.
  1. +0 −39 lib/ringbuffer_helper.c
View
@@ -24,45 +24,6 @@
static int32_t
-my_atomic_timedwait(qb_ringbuffer_t * rb, int32_t ms_timeout)
-{
- int retval = qb_atomic_int_get(&rb->shared_hdr->count);
- if (retval > 0) {
- qb_atomic_int_add(&rb->shared_hdr->count, -1);
- return 0;
- }
-
- return -ETIMEDOUT;
-}
-
-static int32_t
-my_atomic_post(qb_ringbuffer_t * rb)
-{
- qb_atomic_int_add(&rb->shared_hdr->count, 1);
- return 0;
-}
-
-static ssize_t
-my_atomic_getvalue_fn(struct qb_ringbuffer_s *rb)
-{
- return qb_atomic_int_get(&rb->shared_hdr->count);
-}
-
-static int32_t
-my_atomic_destroy(qb_ringbuffer_t * rb)
-{
- rb->shared_hdr->count = 0;
- return 0;
-}
-
-static int32_t
-my_atomic_create(struct qb_ringbuffer_s *rb, uint32_t flags)
-{
- rb->shared_hdr->count = 0;
- return 0;
-}
-
-static int32_t
my_posix_sem_timedwait(qb_ringbuffer_t * rb, int32_t ms_timeout)
{
struct timespec ts_timeout;

0 comments on commit 27de5ec

Please sign in to comment.