summaryrefslogtreecommitdiffstats
path: root/vnfs/VES5.0/evel/evel-library/code/evel_library/ring_buffer.c
diff options
context:
space:
mode:
authorSrikanth Naidu <sn8492@att.com>2018-08-14 21:29:31 +0530
committerSrikanth Naidu <sn8492@att.com>2018-08-14 21:30:57 +0530
commit822c418921c5abf96a48decf81c7bdf595b76c16 (patch)
tree89bda5874cb4b7941475a0e67596e64677c0b46a /vnfs/VES5.0/evel/evel-library/code/evel_library/ring_buffer.c
parentb2c608a794d454fffc738e691919fddf5ca1578b (diff)
C library update for VES5.4.1
Keyword vNicUsageArray is replaced by vNicPerformanceArray and other C library updates for VES5.4.1 Change-Id: I21611b6680ca732562fb9984a5fcd9679f8376e9 Issue-ID: CERT-15 Signed-off-by: Srikanth Naidu <sn8492@att.com>
Diffstat (limited to 'vnfs/VES5.0/evel/evel-library/code/evel_library/ring_buffer.c')
-rw-r--r--vnfs/VES5.0/evel/evel-library/code/evel_library/ring_buffer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vnfs/VES5.0/evel/evel-library/code/evel_library/ring_buffer.c b/vnfs/VES5.0/evel/evel-library/code/evel_library/ring_buffer.c
index ad508743..248baf2f 100644
--- a/vnfs/VES5.0/evel/evel-library/code/evel_library/ring_buffer.c
+++ b/vnfs/VES5.0/evel/evel-library/code/evel_library/ring_buffer.c
@@ -101,9 +101,9 @@ void * ring_buffer_read(ring_buffer * buffer)
msg = (buffer->ring)[buffer->next_read];
buffer->ring[buffer->next_read] = NULL;
buffer->next_read = (buffer->next_read + 1) % buffer->size;
- EVEL_DEBUG("RBR: next read location is %d", buffer->next_read);
pthread_mutex_unlock(&buffer->ring_mutex);
- break;
+ EVEL_DEBUG("RBR: next read location is %d data %lp", buffer->next_read,msg);
+ return msg;
}
else
{
@@ -112,7 +112,7 @@ void * ring_buffer_read(ring_buffer * buffer)
EVEL_DEBUG("RBR: Condition variable wait completed");
}
}
- EVEL_DEBUG("RBR: Ring buffer read returning data at %lp", msg);
+ pthread_mutex_unlock(&buffer->ring_mutex);
return msg;
}