Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix typo (double unlock)
[vpp.git]
/
src
/
vlibmemory
/
memory_vlib.c
diff --git
a/src/vlibmemory/memory_vlib.c
b/src/vlibmemory/memory_vlib.c
index
338fda4
..
7ae7867
100644
(file)
--- a/
src/vlibmemory/memory_vlib.c
+++ b/
src/vlibmemory/memory_vlib.c
@@
-1024,11
+1024,10
@@
skip_save:
if (PREDICT_FALSE (q->head == q->maxsize))
q->head = 0;
pthread_mutex_unlock (&q->mutex);
if (PREDICT_FALSE (q->head == q->maxsize))
q->head = 0;
pthread_mutex_unlock (&q->mutex);
+
if (need_broadcast)
(void) pthread_cond_broadcast (&q->condvar);
if (need_broadcast)
(void) pthread_cond_broadcast (&q->condvar);
- pthread_mutex_unlock (&q->mutex);
-
vl_msg_api_handler_with_vm_node (am, (void *) mp, vm, node);
}
else
vl_msg_api_handler_with_vm_node (am, (void *) mp, vm, node);
}
else