diff options
author | Dave Barach <dave@barachs.net> | 2017-10-31 08:45:52 -0400 |
---|---|---|
committer | Dave Barach <dave@barachs.net> | 2017-10-31 08:51:40 -0400 |
commit | 756d5f76859cc6495dba16a583580d8e7d02a8e6 (patch) | |
tree | c7a6f1b8b86c47e48c83774676c0dabffdf65fa1 | |
parent | 2ca8ced6445d627f6768d1a69b6b871e3dcb5281 (diff) |
Fix typo (double unlock)
Change-Id: If4a128186a732266eb27b6aa3caf6f1feff449bf
Signed-off-by: Dave Barach <dave@barachs.net>
-rw-r--r-- | src/vlibmemory/memory_vlib.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vlibmemory/memory_vlib.c b/src/vlibmemory/memory_vlib.c index 338fda45241..7ae7867f05e 100644 --- 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 (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 |