summaryrefslogtreecommitdiffstats
path: root/src/svm/queue.c
diff options
context:
space:
mode:
authorVratko Polak <vrpolak@cisco.com>2019-05-21 13:47:29 +0200
committerDave Wallace <dwallacelf@gmail.com>2019-05-21 17:02:40 +0000
commita29d18ae6bb7cda3923693a052c3b9208588be8e (patch)
tree72b5fbb5dbb5db56c676af77ed3801a37df349e6 /src/svm/queue.c
parent29325c9b6d91d0e0627102b8bff1d71f247f2ee2 (diff)
svm_queue_timedwait_inline: lock after wait
This fixes a typo introduced in https://gerrit.fd.io/r/18198 Change-Id: I634a06be95154d3e1c5e5711ea69f19c9c4cca44 Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Diffstat (limited to 'src/svm/queue.c')
-rw-r--r--src/svm/queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/svm/queue.c b/src/svm/queue.c
index 2dd987b31b1..c9db454db1e 100644
--- a/src/svm/queue.c
+++ b/src/svm/queue.c
@@ -174,7 +174,7 @@ svm_queue_timedwait_inline (svm_queue_t * q, double timeout)
while (q->cursize == cursize && unix_time_now () < max_time)
CLIB_PAUSE ();
rv = unix_time_now () < max_time ? 0 : ETIMEDOUT;
- svm_queue_unlock (q);
+ svm_queue_lock (q);
return rv;
}
}